FORCE_ROOM_FOR_ENTITY
Forces the entity to be treated as inside a specific room of an interior, identified by roomHashKey.
Useful after teleporting an entity into an interior so it renders correctly.
Signature
void FORCE_ROOM_FOR_ENTITY(Entity entity, Interior interior, Hash roomHashKey); // 0xBC29A9894C976945 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | interior | Interior |
| 3 | roomHashKey | Hash |
Facts
| Name | FORCE_ROOM_FOR_ENTITY |
|---|---|
| Hash | 0xBC29A9894C976945 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xBC29A9894C976945, -- FORCE_ROOM_FOR_ENTITY
PlayerPedId(), -- Entity entity
0, -- Interior interior
GetHashKey("name") -- Hash roomHashKey
)Citizen.invokeNative("0xBC29A9894C976945", // FORCE_ROOM_FOR_ENTITY
PlayerPedId(), // Entity entity
0, // Interior interior
GetHashKey("name") // Hash roomHashKey
);Function.Call((Hash)0xBC29A9894C976945, // FORCE_ROOM_FOR_ENTITY
API.PlayerPedId(), // Entity entity
0, // Interior interior
(uint)API.GetHashKey("name") // Hash roomHashKey
);Related INTERIOR natives
- FORCE_ROOM_FOR_GAME_VIEWPORT
- CLEAR_ROOM_FOR_ENTITY
- GET_KEY_FOR_ENTITY_IN_ROOM
- CLEAR_ROOM_FOR_GAME_VIEWPORT
- GET_ROOM_KEY_FROM_ENTITY
- _IS_INTERIOR_ENTITY_SET_VALID
- ACTIVATE_INTERIOR_ENTITY_SET
- DEACTIVATE_INTERIOR_ENTITY_SET
- GET_INTERIOR_FROM_ENTITY
- IS_INTERIOR_ENTITY_SET_ACTIVE
- RETAIN_ENTITY_IN_INTERIOR
- _0x2533F2AB0EB9C6F9
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.