RedM Natives

GET_RANDOM_EVENT_FLAG

Hash0x924D54E5698AE3E0
Runtime nameGetRandomEventFlag
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD2D57F1D764117B1

Signature

BOOL GET_RANDOM_EVENT_FLAG();

Returns BOOL

Usage

Lua
local retval = GetRandomEventFlag()

-- always works, by hash
local retval = Citizen.InvokeNative(0x924D54E5698AE3E0, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetRandomEventFlag();

// by hash
const retval = Citizen.invokeNative('0x924D54E5698AE3E0', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x924D54E5698AE3E0);

See also

Sources

alloc8or RDR3 NativeDB

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