setGamePaused
SET_GAME_PAUSED0x577D1284D6873711The GTA V native SET_GAME_PAUSED of the MISC namespace, as LS:MP client scripts call it: the global function setGamePaused, in JavaScript and in Lua.
setGamePaused(toggle: boolean): voidsetGamePaused(toggle: boolean)✕
Blocked for scripts: Saves and game flow
Scripts cannot save, load or restart the game. For persistent data, use storage.
Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.
Reference
- Namespace
- Misc MISC
- In the game
void SET_GAME_PAUSED(BOOL toggle)- Hash
0x577D1284D6873711