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.
| Property | Value |
|---|---|
| Native Name | GET_ROOM_KEY_FROM_ENTITY |
| Hash | 0x076E46E0EB52AFC6 |
| Return Type | Hash |
| Build | 1207 |
| Parameters | entity (Entity) |
Parameters
entity(Entity)
Usage
Lua (Direct):
local result = GetRoomKeyFromEntity(entity)
Lua (Hash):
local result = Citizen.InvokeNative(0x076E46E0EB52AFC6, entity)