The Lab
MISC native

GET_RANDOM_EVENT_FLAG

returns BOOL0 paramsbuild 1207

Returns true if the random event flag is set.

Signature

C
BOOL GET_RANDOM_EVENT_FLAG(); // 0x924D54E5698AE3E0 b1207

Parameters

This native takes no parameters.

Facts

Facts about GET_RANDOM_EVENT_FLAG
Name
GET_RANDOM_EVENT_FLAG
Hash
0x924D54E5698AE3E0
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x924D54E5698AE3E0) -- GET_RANDOM_EVENT_FLAG
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x924D54E5698AE3E0", // GET_RANDOM_EVENT_FLAG
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x924D54E5698AE3E0); // GET_RANDOM_EVENT_FLAG
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.