setRoomForGameViewportByKey
SET_ROOM_FOR_GAME_VIEWPORT_BY_KEY0x405DC2AEF6AF95B9The 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.
setRoomForGameViewportByKey(roomHashKey: Hash): voidsetRoomForGameViewportByKey(roomHashKey: Hash)Usage
JavaScript
setRoomForGameViewportByKey(roomHashKey);Lua
setRoomForGameViewportByKey(roomHashKey)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
roomHashKey | Hash | number | integer |
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