RedM Natives

GET_EVENT_EXISTS

Hash0xC9F59C0A710ECD34
Runtime nameGetEventExists
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x936E6168A9BCEDB5

Signature

BOOL GET_EVENT_EXISTS(int eventGroup, Hash eventType);

Parameters

NameTypeDescription
eventGroupint—
eventTypeHash—

Returns BOOL

Description

eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_SCRIPT_ERRORS (CEventGroupScriptErrors)

Usage

Lua
local retval = GetEventExists(eventGroup, eventType)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC9F59C0A710ECD34, eventGroup, eventType, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetEventExists(eventGroup, eventType);

// by hash
const retval = Citizen.invokeNative('0xC9F59C0A710ECD34', eventGroup, eventType, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xC9F59C0A710ECD34, eventGroup, eventType);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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