GET_RANDOM_EVENT_FLAG
Hash
0x924D54E5698AE3E0Runtime name
GetRandomEventFlagNamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD2D57F1D764117B1Signature
BOOL GET_RANDOM_EVENT_FLAG();Returns BOOL
Usage
local retval = GetRandomEventFlag()
-- always works, by hash
local retval = Citizen.InvokeNative(0x924D54E5698AE3E0, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = GetRandomEventFlag();
// by hash
const retval = Citizen.invokeNative('0x924D54E5698AE3E0', Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x924D54E5698AE3E0);See also
SET_RANDOM_EVENT_FLAGIf the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.