Entity
Hierarchy
- WorldObject
- Entity
Index
Properties
Accessors
Methods
Properties
publiccollision
publicdimension
publicfrozen
publicreadonlyid
publicreadonlynetOwner
Network owner of the entity.
publicpos
Object position.
publicreadonlyrefCount
Returns the ref count of the entity.
publicrot
Entity rotation.
publicstreamed
Whether the entity should be streamed for other entities.
publicstreamingDistance
publicreadonlytimestamp
publicreadonlytype
Type of the object.
publicreadonlyvalid
Object usability.
publicvisible
Whether the entity is visible.
publicstaticreadonlyall
Array with all entities.
Accessors
publicmodel
Entity model hash.
Getter
Methods
publicattachTo
Attaches this entity to another entity.
publicdeleteMeta
publicdeleteStreamSyncedMeta
Removes the specified key and the data connected to that specific key.
publicdeleteSyncedMeta
Removes the specified key and the data connected to that specific key.
publicdestroy
Removes the object from the world.
publicdetach
Detaches this entity if attached to another entity.
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetStreamSyncedMeta
Gets a value using the specified key.
Type parameters
- K: string
publicgetStreamSyncedMetaKeys
publicgetSyncedMeta
Gets a value using the specified key.
Type parameters
- K: string
publicgetSyncedMetaKeys
publichasMeta
publichasStreamSyncedMeta
Determines whether contains the specified key.
publichasSyncedMeta
Determines whether contains the specified key.
publicresetNetOwner
Resets overwritten network owner.
publicsetMeta
Type parameters
- K: string
publicsetNetOwner
Changes network owner to the specified player.
publicsetStreamSyncedMeta
Stores the given value with the specified key.
Type parameters
- K: string
publicsetSyncedMeta
Stores the given value with the specified key.
Type parameters
- K: string
publicstaticgetByID
Gets the base object with the given type and id
Object dimension.
Remarks
Check https://docs.altv.mp/articles/dimensions.html to understand how it works.