FORCE_ROOM_FOR_GAME_VIEWPORT
Forces the game viewport to render as if inside the given interior room.
Signature
void FORCE_ROOM_FOR_GAME_VIEWPORT(int interiorID, Hash roomHashKey); // 0x115B4AA8FB28AB43 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | interiorID | int |
| 2 | roomHashKey | Hash |
Facts
| 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.
Citizen.InvokeNative(0x115B4AA8FB28AB43, -- FORCE_ROOM_FOR_GAME_VIEWPORT
0, -- int interiorID
GetHashKey("name") -- Hash roomHashKey
)Citizen.invokeNative("0x115B4AA8FB28AB43", // FORCE_ROOM_FOR_GAME_VIEWPORT
0, // int interiorID
GetHashKey("name") // Hash roomHashKey
);Function.Call((Hash)0x115B4AA8FB28AB43, // FORCE_ROOM_FOR_GAME_VIEWPORT
0, // int interiorID
(uint)API.GetHashKey("name") // Hash roomHashKey
);Related INTERIOR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.