GET_ROOM_KEY_FROM_ENTITY
Gets the room hash key from the room that the specified entity is in.
Hash
0x076E46E0EB52AFC6Runtime name
GetRoomKeyFromEntityNamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x47C2A06D4F5F424BSignature
Hash GET_ROOM_KEY_FROM_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Hash
Description
Gets the room hash key from the room that the specified entity is in. Each room in every interior has a unique key. Returns 0 if the entity is outside.
Usage
local retval = GetRoomKeyFromEntity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x076E46E0EB52AFC6, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetRoomKeyFromEntity(entity);
// by hash
const retval = Citizen.invokeNative('0x076E46E0EB52AFC6', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x076E46E0EB52AFC6, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.