The Lab
INTERIOR native

GET_KEY_FOR_ENTITY_IN_ROOM

returns Hash1 parambuild 1207

Returns the hash key of the interior room the entity is currently in.

Signature

C
Hash GET_KEY_FOR_ENTITY_IN_ROOM(Entity entity); // 0x27D7B6F79E1F4603 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_KEY_FOR_ENTITY_IN_ROOM
Name
GET_KEY_FOR_ENTITY_IN_ROOM
Hash
0x27D7B6F79E1F4603
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x27D7B6F79E1F4603, -- GET_KEY_FOR_ENTITY_IN_ROOM
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x27D7B6F79E1F4603", // GET_KEY_FOR_ENTITY_IN_ROOM
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x27D7B6F79E1F4603, // GET_KEY_FOR_ENTITY_IN_ROOM
  API.PlayerPedId() // Entity entity
);
All INTERIOR natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.