The Lab
INTERIOR native

FORCE_ROOM_FOR_ENTITY

returns void3 paramsbuild 1207

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

C
void FORCE_ROOM_FOR_ENTITY(Entity entity, Interior interior, Hash roomHashKey); // 0xBC29A9894C976945 b1207

Parameters

#NameType
1entityEntity
2interiorInterior
3roomHashKeyHash

Facts

Facts about FORCE_ROOM_FOR_ENTITY
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.

Lua
Citizen.InvokeNative(0xBC29A9894C976945, -- FORCE_ROOM_FOR_ENTITY
  PlayerPedId(), -- Entity entity
  0, -- Interior interior
  GetHashKey("name") -- Hash roomHashKey
)
JavaScript
Citizen.invokeNative("0xBC29A9894C976945", // FORCE_ROOM_FOR_ENTITY
  PlayerPedId(), // Entity entity
  0, // Interior interior
  GetHashKey("name") // Hash roomHashKey
);
C#
Function.Call((Hash)0xBC29A9894C976945, // FORCE_ROOM_FOR_ENTITY
  API.PlayerPedId(), // Entity entity
  0, // Interior interior
  (uint)API.GetHashKey("name") // Hash roomHashKey
);
All INTERIOR natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.