InteriorClient

setRoomForGameViewportByName

SET_ROOM_FOR_GAME_VIEWPORT_BY_NAME0xAF348AFCB575A441

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

SignatureJavaScript
setRoomForGameViewportByName(roomName: string): void
SignatureLua
setRoomForGameViewportByName(roomName: string)

Usage

JavaScript
setRoomForGameViewportByName(roomName);
Lua
setRoomForGameViewportByName(roomName)

Parameters

ParameterTypeJavaScriptLua
roomNamestringstringstring

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.

Example of use (carmod_shop)

setRoomForGameViewportByName("V_CarModRoom");

Reference

Namespace
Interior INTERIOR
In the game
void SET_ROOM_FOR_GAME_VIEWPORT_BY_NAME(const char* roomName)
Hash
0xAF348AFCB575A441

Open in the interactive natives reference