setRoomForGameViewportByName
SET_ROOM_FOR_GAME_VIEWPORT_BY_NAME0xAF348AFCB575A441The 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.
setRoomForGameViewportByName(roomName: string): voidsetRoomForGameViewportByName(roomName: string)Usage
JavaScript
setRoomForGameViewportByName(roomName);Lua
setRoomForGameViewportByName(roomName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
roomName | string | string | string |
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