InteriorClient

setRoomForGameViewportByKey

SET_ROOM_FOR_GAME_VIEWPORT_BY_KEY0x405DC2AEF6AF95B9

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

SignatureJavaScript
setRoomForGameViewportByKey(roomHashKey: Hash): void
SignatureLua
setRoomForGameViewportByKey(roomHashKey: Hash)

Usage

JavaScript
setRoomForGameViewportByKey(roomHashKey);
Lua
setRoomForGameViewportByKey(roomHashKey)

Parameters

ParameterTypeJavaScriptLua
roomHashKeyHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Usage: setRoomForGameViewportByKey(getKeyForEntityInRoom(playerPedId()));

Reference

Namespace
Interior INTERIOR
In the game
void SET_ROOM_FOR_GAME_VIEWPORT_BY_KEY(Hash roomHashKey)
Hash
0x405DC2AEF6AF95B9

Open in the interactive natives reference