RedM Natives

FORCE_ROOM_FOR_GAME_VIEWPORT

Hash0x115B4AA8FB28AB43
Runtime nameForceRoomForGameViewport
NamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x920D853F3E17F1DA

Signature

void FORCE_ROOM_FOR_GAME_VIEWPORT(int interiorID, Hash roomHashKey);

Parameters

NameTypeDescription
interiorIDint—
roomHashKeyHash—

Returns void

Usage

Lua
ForceRoomForGameViewport(interiorID, roomHashKey)

-- always works, by hash
Citizen.InvokeNative(0x115B4AA8FB28AB43, interiorID, roomHashKey)
JavaScript and C#
JavaScript
ForceRoomForGameViewport(interiorID, roomHashKey);

// by hash
Citizen.invokeNative('0x115B4AA8FB28AB43', interiorID, roomHashKey);
C#
Function.Call((Hash)0x115B4AA8FB28AB43, interiorID, roomHashKey);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.