FORCE_ROOM_FOR_GAME_VIEWPORT
Hash
0x115B4AA8FB28AB43Runtime name
ForceRoomForGameViewportNamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x920D853F3E17F1DASignature
void FORCE_ROOM_FOR_GAME_VIEWPORT(int interiorID, Hash roomHashKey);Parameters
| Name | Type | Description |
|---|---|---|
interiorID | int | — |
roomHashKey | Hash | — |
Returns void
Usage
ForceRoomForGameViewport(interiorID, roomHashKey)
-- always works, by hash
Citizen.InvokeNative(0x115B4AA8FB28AB43, interiorID, roomHashKey)JavaScript and C#
ForceRoomForGameViewport(interiorID, roomHashKey);
// by hash
Citizen.invokeNative('0x115B4AA8FB28AB43', interiorID, roomHashKey);Function.Call((Hash)0x115B4AA8FB28AB43, interiorID, roomHashKey);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.