getEntityAttachedTo
GET_ENTITY_ATTACHED_TO0x48C2BED9180FE123The GTA V native GET_ENTITY_ATTACHED_TO of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityAttachedTo, in JavaScript and in Lua.
getEntityAttachedTo(entity: Entity): EntitygetEntityAttachedTo(entity: Entity): EntityUsage
JavaScript
const result = getEntityAttachedTo(entity);Lua
local result = getEntityAttachedTo(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Entity JavaScript number, Lua integerGame handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Entity ENTITY
- In the game
Entity GET_ENTITY_ATTACHED_TO(Entity entity)- Hash
0x48C2BED9180FE123