Player
Hierarchy
- Entity
- Player
Index
Properties
- aimPos
- armour
- currentWeapon
- currentWeaponComponents
- currentWeaponTintIndex
- dimension
- entityAimOffset
- entityAimingAt
- filter
- flashlightActive
- forwardSpeed
- frozen
- headRot
- health
- id
- isAiming
- isCrouching
- isDead
- isEnteringVehicle
- isInCover
- isInMelee
- isInRagdoll
- isLeavingVehicle
- isOnLadder
- isParachuting
- isReloading
- isRemote
- isSpawned
- isStealthy
- isTalking
- maxArmour
- maxHealth
- micLevel
- moveSpeed
- name
- netOwner
- nonSpatialVolume
- pos
- refCount
- remoteID
- rot
- scriptID
- seat
- spatialVolume
- strafeSpeed
- taskData
- type
- valid
- vehicle
- visible
- all
- count
- local
- streamedIn
Accessors
Methods
Properties
publicreadonlyaimPos
publicreadonlyarmour
Current armour.
publicreadonlycurrentWeapon
Currently equipped weapon.
publicreadonlycurrentWeaponComponents
Current weapon components.
publicreadonlycurrentWeaponTintIndex
Tint index for currently equipped weapon.
publicdimension
Object dimension.
publicreadonlyentityAimOffset
The current aim offset of the player.
publicreadonlyentityAimingAt
The entity the player is aiming at.
publicfilter
publicreadonlyflashlightActive
Is the flashlight of the player activated.
publicreadonlyforwardSpeed
Forward speed of the player.
publicfrozen
publicreadonlyheadRot
Rotation of the head of the player.
publicreadonlyhealth
Current health of the player.
publicreadonlyid
publicreadonlyisAiming
Is the player currently aiming.
publicreadonlyisCrouching
Is the player currently crouching.
publicreadonlyisDead
publicreadonlyisEnteringVehicle
publicreadonlyisInCover
publicreadonlyisInMelee
publicreadonlyisInRagdoll
Is the player currently in ragdoll.
publicreadonlyisLeavingVehicle
publicreadonlyisOnLadder
publicreadonlyisParachuting
publicreadonlyisReloading
Is the player currently reloading their weapon.
publicreadonlyisRemote
Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true).
publicreadonlyisSpawned
Returns whether the entity is spawned in the game world.
publicreadonlyisStealthy
Is the player currently stealthy.
publicreadonlyisTalking
Player talking state
publicreadonlymaxArmour
Max available armour value.
publicreadonlymaxHealth
Current max health of the player.
publicreadonlymicLevel
Player talking volume
publicreadonlymoveSpeed
Current player movement speed.
publicreadonlyname
Player name
publicreadonlynetOwner
Network owner of the entity.
publicnonSpatialVolume
Set & get the volume for 2D Voice.
publicpos
Object position.
publicreadonlyrefCount
Returns the ref count of the entity.
publicreadonlyremoteID
The serverside id of this entity.
publicrot
Entity rotation in radians
publicreadonlyscriptID
Internal game id that can be used in native calls
publicreadonlyseat
Curent seat the player is sitting in.
If player is not in any vehicle it is equal to 0
.
publicspatialVolume
Set & get the volume for 3D Voice.
publicreadonlystrafeSpeed
Strafe speed of the player.
publicreadonlytaskData
publicreadonlytype
Type of the object.
publicreadonlyvalid
Object usability.
publicreadonlyvehicle
Player’s vehicle, null if player is not in any vehicle
publicreadonlyvisible
publicstaticreadonlyall
Array with all players.
publicstaticreadonlycount
publicstaticreadonlylocal
The local player instance.
publicstaticreadonlystreamedIn
Array with all streamed in players.
Accessors
publicmodel
Hash of entity model
Getter
Methods
publicdeleteMeta
publicdestroy
Removes the object from the world.
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetStreamSyncedMeta
Type parameters
- K: string
publicgetStreamSyncedMetaKeys
publicgetSyncInfo
publicgetSyncedMeta
Type parameters
- K: string
publicgetSyncedMetaKeys
publicgetWeaponTintIndex
publichasMeta
publichasStreamSyncedMeta
publichasSyncedMeta
publichasWeaponComponent
publicsetMeta
Type parameters
- K: string
publicstaticgetByID
Retrieves the player from the pool.
publicstaticgetByRemoteID
Gets the player with the given remote id
publicstaticgetByScriptID
Retrieves the player from the pool.
Position the player is currently aiming at.