setPauseMenuPedSleepState
SET_PAUSE_MENU_PED_SLEEP_STATE0xECF128344E9FF9F1The GTA V native SET_PAUSE_MENU_PED_SLEEP_STATE of the HUD namespace, as LS:MP client scripts call it: the global function setPauseMenuPedSleepState, in JavaScript and in Lua.
setPauseMenuPedSleepState(state: boolean): voidsetPauseMenuPedSleepState(state: boolean)Usage
JavaScript
setPauseMenuPedSleepState(state);Lua
setPauseMenuPedSleepState(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 pause menu ped sleep state for frontend menus.
Example: https://vespura.com/hi/i/2019-04-01_15-51_8ed38_1014.gif
state 0 will make the ped slowly fall asleep, 1 will slowly wake the ped up.
Reference
- Namespace
- HUD HUD
- In the game
void SET_PAUSE_MENU_PED_SLEEP_STATE(BOOL state)- Hash
0xECF128344E9FF9F1