Documentation

LocalPlayer

Constructible This class can not be instantiated from your script. Do not try to use the `new` keyword on this class. Auto Destroy Instances of this class will be deleted automatically. Custom Properties You cannot add your own properties to instances of this class. They will not be saved and can cause undefined behavior.

Properties

Name Type Description
position Vector3f the LocalPlayer's position in the game world
rotation Vector3f the LocalPlayer's rotation in the game world
camera Camera read only
frozen boolean
controlsEnabled boolean
baseState number

Functions

LocalPlayer.SetAbilityEnabled(number ability, boolean enabled)

returns: void

Available abilities

Name Value
> Grappling hook 0xCB836D80
> Parachute 0xCEEFA27A
> Wingsuit 0xE060F641

Parameter

Name Type Description
ability number
enabled boolean

LocalPlayer.IsAbilityEnabled(number ability)

returns: boolean

Parameter

Name Type Description
ability number

LocalPlayer.CallGameEvent(string event)

returns: void

Parameter

Name Type Description
event string

LocalPlayer.GetRenderPosition(number p1)

returns: Vector3f

Parameter

Name Type Description
p1 number

LocalPlayer.GetRenderTransform(number p1)

returns: Matrix

Parameter

Name Type Description
p1 number

LocalPlayer.GetBoneTransform(number p1, number p2)

returns: Matrix

Parameter

Name Type Description
p1 number
p2 number

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.