The Lab
INTERIOR native

FORCE_ROOM_FOR_GAME_VIEWPORT

returns void2 paramsbuild 1207

Forces the game viewport to render as if inside the given interior room.

Signature

C
void FORCE_ROOM_FOR_GAME_VIEWPORT(int interiorID, Hash roomHashKey); // 0x115B4AA8FB28AB43 b1207

Parameters

#NameType
1interiorIDint
2roomHashKeyHash

Facts

Facts about FORCE_ROOM_FOR_GAME_VIEWPORT
Name
FORCE_ROOM_FOR_GAME_VIEWPORT
Hash
0x115B4AA8FB28AB43
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(0x115B4AA8FB28AB43, -- FORCE_ROOM_FOR_GAME_VIEWPORT
  0, -- int interiorID
  GetHashKey("name") -- Hash roomHashKey
)
JavaScript
Citizen.invokeNative("0x115B4AA8FB28AB43", // FORCE_ROOM_FOR_GAME_VIEWPORT
  0, // int interiorID
  GetHashKey("name") // Hash roomHashKey
);
C#
Function.Call((Hash)0x115B4AA8FB28AB43, // FORCE_ROOM_FOR_GAME_VIEWPORT
  0, // int interiorID
  (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.