RedM Natives

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.

Hash0xB1ADCCC4150C6473
Runtime nameSetRandomEventFlag
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x971927086CFD2158

Signature

void SET_RANDOM_EVENT_FLAG(BOOL toggle);

Parameters

NameTypeDescription
toggleBOOL—

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

Lua
SetRandomEventFlag(toggle)

-- always works, by hash
Citizen.InvokeNative(0xB1ADCCC4150C6473, toggle)
JavaScript and C#
JavaScript
SetRandomEventFlag(toggle);

// by hash
Citizen.invokeNative('0xB1ADCCC4150C6473', toggle);
C#
Function.Call((Hash)0xB1ADCCC4150C6473, toggle);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.