MiscClient

setRiotModeEnabled

SET_RIOT_MODE_ENABLED0x2587A48BC88DFADF

The 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.

SignatureJavaScript
setRiotModeEnabled(toggle: boolean): void
SignatureLua
setRiotModeEnabled(toggle: boolean)

Usage

JavaScript
setRiotModeEnabled(toggle);
Lua
setRiotModeEnabled(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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

Open in the interactive natives reference