Player
Hierarchy
- Entity
- Player
Index
Properties
- aimPos
- armour
- authToken
- cloudAuthResult
- cloudID
- collision
- currentAnimationDict
- currentAnimationName
- currentInterior
- currentWeapon
- currentWeaponComponents
- currentWeaponTintIndex
- dimension
- discordID
- entityAimOffset
- entityAimingAt
- flashlightActive
- forwardSpeed
- frozen
- headRot
- health
- hwidExHash
- hwidHash
- id
- invincible
- ip
- isAiming
- isCrouching
- isDead
- isEnteringVehicle
- isInCover
- isInMelee
- isInRagdoll
- isLeavingVehicle
- isOnLadder
- isParachuting
- isReloading
- isSpawned
- isStealthy
- isSuperJumpEnabled
- lastDamagedBodyPart
- maxArmour
- maxHealth
- moveSpeed
- name
- netOwner
- netOwnershipDisabled
- ping
- pos
- refCount
- rot
- seat
- sendNames
- socialClubName
- socialID
- strafeSpeed
- streamed
- streamedEntities
- streamingDistance
- timestamp
- type
- valid
- vehicle
- visible
- weapons
- all
- count
Accessors
Methods
- addDecoration
- addWeaponComponent
- attachTo
- clearBloodDamage
- clearClothes
- clearDecorations
- clearProp
- clearTasks
- deleteLocalMeta
- deleteMeta
- deleteStreamSyncedMeta
- deleteSyncedMeta
- despawn
- destroy
- detach
- emit
- emitRaw
- emitRpc
- getAmmo
- getAmmoFlags
- getAmmoMax
- getAmmoMax100
- getAmmoMax50
- getAmmoSpecialType
- getBloodDamageBase64
- getClothes
- getDecorations
- getDlcClothes
- getDlcProp
- getEyeColor
- getFaceFeatureScale
- getHairColor
- getHairHighlightColor
- getHeadBlendData
- getHeadBlendPaletteColor
- getHeadOverlay
- getLocalMeta
- getLocalMetaKeys
- getMeta
- getMetaDataKeys
- getProp
- getStreamSyncedMeta
- getStreamSyncedMetaKeys
- getSyncedMeta
- getSyncedMetaKeys
- getWeaponAmmo
- giveWeapon
- hasLocalMeta
- hasMeta
- hasStreamSyncedMeta
- hasSyncedMeta
- hasWeapon
- hasWeaponComponent
- isEntityInStreamRange
- kick
- playAmbientSpeech
- playAnimation
- playScenario
- removeAllWeapons
- removeDecoration
- removeFaceFeature
- removeHeadBlendData
- removeHeadBlendPaletteColor
- removeHeadOverlay
- removeWeapon
- removeWeaponComponent
- resetNetOwner
- setAmmo
- setAmmoFlags
- setAmmoMax
- setAmmoMax100
- setAmmoMax50
- setAmmoSpecialType
- setBloodDamageBase64
- setClothes
- setDateTime
- setDlcClothes
- setDlcProp
- setEyeColor
- setFaceFeature
- setHairColor
- setHairHighlightColor
- setHeadBlendData
- setHeadBlendPaletteColor
- setHeadOverlay
- setHeadOverlayColor
- setIntoVehicle
- setLocalMeta
- setMeta
- setNetOwner
- setProp
- setStreamSyncedMeta
- setSyncedMeta
- setWeaponAmmo
- setWeaponTintIndex
- setWeather
- spawn
- getByID
Properties
publicreadonlyaimPos
publicarmour
publicreadonlyauthToken
publicreadonlycloudAuthResult
publicreadonlycloudID
publiccollision
publicreadonlycurrentAnimationDict
publicreadonlycurrentAnimationName
publicreadonlycurrentInterior
publiccurrentWeapon
publicreadonlycurrentWeaponComponents
publicreadonlycurrentWeaponTintIndex
publicdimension
Object dimension.
publicreadonlydiscordID
publicreadonlyentityAimOffset
publicreadonlyentityAimingAt
publicreadonlyflashlightActive
publicreadonlyforwardSpeed
publicfrozen
publicreadonlyheadRot
publichealth
publicreadonlyhwidExHash
publicreadonlyhwidHash
publicreadonlyid
publicinvincible
publicreadonlyip
publicreadonlyisAiming
publicreadonlyisCrouching
publicreadonlyisDead
publicreadonlyisEnteringVehicle
publicreadonlyisInCover
publicreadonlyisInMelee
publicreadonlyisInRagdoll
publicreadonlyisLeavingVehicle
publicreadonlyisOnLadder
publicreadonlyisParachuting
publicreadonlyisReloading
The player’s state of weapon reloading.
publicreadonlyisSpawned
publicreadonlyisStealthy
publicreadonlyisSuperJumpEnabled
publiclastDamagedBodyPart
publicmaxArmour
publicmaxHealth
publicreadonlymoveSpeed
publicreadonlyname
publicreadonlynetOwner
Network owner of the entity.
publicnetOwnershipDisabled
publicreadonlyping
publicpos
Object position.
publicreadonlyrefCount
Returns the ref count of the entity.
publicrot
Entity rotation.
publicreadonlyseat
Curent seat the player is sitting in.
If player is not in any vehicle it is equal to 0
.
publicsendNames
Send names of all players on server to this player if they are not already sent (value is not set to true
).
publicreadonlysocialClubName
publicreadonlysocialID
publicreadonlystrafeSpeed
publicstreamed
Whether the entity should be streamed for other entities.
publicreadonlystreamedEntities
publicstreamingDistance
publicreadonlytimestamp
publicreadonlytype
Type of the object.
publicreadonlyvalid
Object usability.
publicreadonlyvehicle
publicvisible
Whether the entity is visible.
publicreadonlyweapons
publicstaticreadonlyall
Array with all players connected to the server.
publicstaticreadonlycount
Accessors
publicmodel
Entity model hash.
Getter
Setter
Methods
publicaddDecoration
publicaddWeaponComponent
publicattachTo
Attaches this entity to another entity.
publicclearBloodDamage
Removes the visible blood on the player body.
publicclearClothes
publicclearDecorations
publicclearProp
Removes a specified prop component.
publicclearTasks
publicdeleteLocalMeta
publicdeleteMeta
publicdeleteStreamSyncedMeta
publicdeleteSyncedMeta
publicdespawn
publicdestroy
Removes the object from the world.
publicdetach
Detaches this entity if attached to another entity.
publicemit
Emits specified event to client.
Type parameters
- K: never
publicemitRaw
Emits specified event to client, but faster as emit.
Type parameters
- K: never
publicemitRpc
Calls a client sided RPC with the specified arguments.
Type parameters
- K: never
publicgetAmmo
publicgetAmmoFlags
publicgetAmmoMax
publicgetAmmoMax100
publicgetAmmoMax50
publicgetAmmoSpecialType
publicgetBloodDamageBase64
publicgetClothes
Gets the specified clothing component.
publicgetDecorations
publicgetDlcClothes
Gets the specified dlc clothing component.
publicgetDlcProp
Gets the specified dlc prop component.
publicgetEyeColor
publicgetFaceFeatureScale
publicgetHairColor
publicgetHairHighlightColor
publicgetHeadBlendData
publicgetHeadBlendPaletteColor
publicgetHeadOverlay
publicgetLocalMeta
Gets a value using the specified key.
Type parameters
- K: string
publicgetLocalMetaKeys
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetProp
Gets the specified prop component.
publicgetStreamSyncedMeta
Type parameters
- K: string
publicgetStreamSyncedMetaKeys
publicgetSyncedMeta
Type parameters
- K: string
publicgetSyncedMetaKeys
publicgetWeaponAmmo
publicgiveWeapon
Gives the specified weapon to the player.
publichasLocalMeta
publichasMeta
publichasStreamSyncedMeta
publichasSyncedMeta
publichasWeapon
publichasWeaponComponent
publicisEntityInStreamRange
Checks whether the given entity is in the stream range of the player.
publickick
Forcefully disconnects the player with a reason message.
publicplayAmbientSpeech
Plays ambient speech.
publicplayAnimation
publicplayScenario
publicremoveAllWeapons
Removes every weapon from the player.
publicremoveDecoration
publicremoveFaceFeature
publicremoveHeadBlendData
publicremoveHeadBlendPaletteColor
publicremoveHeadOverlay
publicremoveWeapon
Removes the specified weapon from the player.
publicremoveWeaponComponent
Removes the specified weapon component from the specified weapon.
publicresetNetOwner
Resets overwritten network owner.
publicsetAmmo
publicsetAmmoFlags
publicsetAmmoMax
publicsetAmmoMax100
publicsetAmmoMax50
publicsetAmmoSpecialType
publicsetBloodDamageBase64
publicsetClothes
Sets the specified clothing component.
publicsetDateTime
publicsetDlcClothes
Sets the specified dlc clothing component.
publicsetDlcProp
Sets the specified dlc prop component.
publicsetEyeColor
publicsetFaceFeature
publicsetHairColor
publicsetHairHighlightColor
publicsetHeadBlendData
publicsetHeadBlendPaletteColor
publicsetHeadOverlay
publicsetHeadOverlayColor
publicsetIntoVehicle
Set the player into a vehicle on specific seat.
publicsetLocalMeta
Stores the given value with the specified key.
Type parameters
- K: string
publicsetMeta
Type parameters
- K: string
publicsetNetOwner
Changes network owner to the specified player.
publicsetProp
Sets the specified prop component.
publicsetStreamSyncedMeta
Type parameters
- K: string
publicsetSyncedMeta
Type parameters
- K: string
publicsetWeaponAmmo
publicsetWeaponTintIndex
publicsetWeather
publicspawn
Spawns the player in the world.
publicstaticgetByID
Retrieves the player from the pool.
Position the player is currently aiming at.
Remarks
Will return zero if the player is aiming against a entity.