InteriorClient

getRoomKeyForGameViewport

GET_ROOM_KEY_FOR_GAME_VIEWPORT0xA6575914D2A0B450

The GTA V native GET_ROOM_KEY_FOR_GAME_VIEWPORT of the INTERIOR namespace, as LS:MP client scripts call it: the global function getRoomKeyForGameViewport, in JavaScript and in Lua.

SignatureJavaScript
getRoomKeyForGameViewport(): Hash
SignatureLua
getRoomKeyForGameViewport(): Hash

Usage

JavaScript
const hash = getRoomKeyForGameViewport();
Lua
local hash = getRoomKeyForGameViewport()

Parameters

None.

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Reference

Namespace
Interior INTERIOR
In the game
Hash GET_ROOM_KEY_FOR_GAME_VIEWPORT()
Hash
0xA6575914D2A0B450
Formerly
_GET_ROOM_KEY_FROM_GAMEPLAY_CAM

Open in the interactive natives reference