MiscClient

getRandomEventFlag

GET_RANDOM_EVENT_FLAG0xD2D57F1D764117B1

The GTA V native GET_RANDOM_EVENT_FLAG of the MISC namespace, as LS:MP client scripts call it: the global function getRandomEventFlag, in JavaScript and in Lua.

SignatureJavaScript
getRandomEventFlag(): boolean
SignatureLua
getRandomEventFlag(): boolean

Usage

JavaScript
const result = getRandomEventFlag();
Lua
local result = getRandomEventFlag()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Misc MISC
In the game
BOOL GET_RANDOM_EVENT_FLAG()
Hash
0xD2D57F1D764117B1

Open in the interactive natives reference