InteriorClient

getKeyForEntityInRoom

GET_KEY_FOR_ENTITY_IN_ROOM0x399685DB942336BC

The 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.

SignatureJavaScript
getKeyForEntityInRoom(entity: Entity): Hash
SignatureLua
getKeyForEntityInRoom(entity: Entity): Hash

Usage

JavaScript
const hash = getKeyForEntityInRoom(entity);
Lua
local hash = getKeyForEntityInRoom(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

Hash JavaScript number, Lua integer

A 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

Open in the interactive natives reference