The Lab
INTERIOR native

GET_ROOM_KEY_FROM_ENTITY

returns Hash1 parambuild 1207

Returns the room hash key for the room the entity currently occupies.

Signature

C
Hash GET_ROOM_KEY_FROM_ENTITY(Entity entity); // 0x076E46E0EB52AFC6 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_ROOM_KEY_FROM_ENTITY
Name
GET_ROOM_KEY_FROM_ENTITY
Hash
0x076E46E0EB52AFC6
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(0x076E46E0EB52AFC6, -- GET_ROOM_KEY_FROM_ENTITY
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x076E46E0EB52AFC6", // GET_ROOM_KEY_FROM_ENTITY
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x076E46E0EB52AFC6, // GET_ROOM_KEY_FROM_ENTITY
  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.