getKeyForEntityInRoom
GET_KEY_FOR_ENTITY_IN_ROOM0x399685DB942336BCThe GTA V native GET_KEY_FOR_ENTITY_IN_ROOM of the INTERIOR namespace, as LS:MP client scripts call it: the global function getKeyForEntityInRoom, in JavaScript and in Lua.
getKeyForEntityInRoom(entity: Entity): HashgetKeyForEntityInRoom(entity: Entity): HashUsage
JavaScript
const hash = getKeyForEntityInRoom(entity);Lua
local hash = getKeyForEntityInRoom(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Hash JavaScript number, Lua integerA game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Seems to do the exact same as getRoomKeyFromEntity
Reference
- Namespace
- Interior INTERIOR
- In the game
Hash GET_KEY_FOR_ENTITY_IN_ROOM(Entity entity)- Hash
0x399685DB942336BC