GET_ROOM_KEY_FROM_ENTITY
Returns the room hash key for the room the entity currently occupies.
Signature
Hash GET_ROOM_KEY_FROM_ENTITY(Entity entity); // 0x076E46E0EB52AFC6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| 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.
local hash = Citizen.InvokeNative(0x076E46E0EB52AFC6, -- GET_ROOM_KEY_FROM_ENTITY
PlayerPedId(), -- Entity entity
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x076E46E0EB52AFC6", // GET_ROOM_KEY_FROM_ENTITY
PlayerPedId(), // Entity entity
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x076E46E0EB52AFC6, // GET_ROOM_KEY_FROM_ENTITY
API.PlayerPedId() // Entity entity
);Related INTERIOR natives
- GET_KEY_FOR_ENTITY_IN_ROOM
- GET_INTERIOR_FROM_ENTITY
- GET_INTERIOR_FROM_COLLISION
- GET_INTERIOR_FROM_PRIMARY_VIEW
- CLEAR_ROOM_FOR_ENTITY
- FORCE_ROOM_FOR_ENTITY
- GET_INTERIOR_AT_COORDS
- GET_INTERIOR_AT_COORDS_WITH_TYPE
- GET_INTERIOR_AT_COORDS_WITH_TYPEHASH
- GET_INTERIOR_LOCATION_AND_NAMEHASH
- _GET_INTERIOR_MINIMAP_HASH
- _GET_INTERIOR_POSITION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.