setRiotModeEnabled
SET_RIOT_MODE_ENABLED0x2587A48BC88DFADFThe GTA V native SET_RIOT_MODE_ENABLED of the MISC namespace, as LS:MP client scripts call it: the global function setRiotModeEnabled, in JavaScript and in Lua.
setRiotModeEnabled(toggle: boolean): voidsetRiotModeEnabled(toggle: boolean)Usage
JavaScript
setRiotModeEnabled(toggle);Lua
setRiotModeEnabled(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | 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.
Activates (usused?) riot mode. All NPCs are being hostile to each other (including player). Also the game will give weapons (pistols, smgs) to random NPCs.
Reference
- Namespace
- Misc MISC
- In the game
void SET_RIOT_MODE_ENABLED(BOOL toggle)- Hash
0x2587A48BC88DFADF