SET_RANDOM_EVENT_FLAG
If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.
Hash
0xB1ADCCC4150C6473Runtime name
SetRandomEventFlagNamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x971927086CFD2158Signature
void SET_RANDOM_EVENT_FLAG(BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
toggle | BOOL | — |
Returns void
Description
If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.
Does nothing if the mission flag is set.
Usage
SetRandomEventFlag(toggle)
-- always works, by hash
Citizen.InvokeNative(0xB1ADCCC4150C6473, toggle)JavaScript and C#
SetRandomEventFlag(toggle);
// by hash
Citizen.invokeNative('0xB1ADCCC4150C6473', toggle);Function.Call((Hash)0xB1ADCCC4150C6473, toggle);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.