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