setPauseMenuPedLighting
SET_PAUSE_MENU_PED_LIGHTING0x3CA6050692BC61B0The GTA V native SET_PAUSE_MENU_PED_LIGHTING of the HUD namespace, as LS:MP client scripts call it: the global function setPauseMenuPedLighting, in JavaScript and in Lua.
setPauseMenuPedLighting(state: boolean): voidsetPauseMenuPedLighting(state: boolean)Usage
JavaScript
setPauseMenuPedLighting(state);Lua
setPauseMenuPedLighting(state)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
state | BOOL | boolean | boolean |
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.
Toggles the light state for the pause menu ped in frontend menus.
This is used by R* in combination with setPauseMenuPedSleepState to toggle the "offline" or "online" state in the "friends" tab of the pause menu in GTA Online.
Example:
Lights On: https://vespura.com/hi/i/2019-04-01_16-09_540ee_1015.png
Lights Off: https://vespura.com/hi/i/2019-04-01_16-10_8b5e7_1016.png
Reference
- Namespace
- HUD HUD
- In the game
void SET_PAUSE_MENU_PED_LIGHTING(BOOL state)- Hash
0x3CA6050692BC61B0