GET_EVENT_EXISTS
Hash
0xC9F59C0A710ECD34Runtime name
GetEventExistsNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x936E6168A9BCEDB5Signature
BOOL GET_EVENT_EXISTS(int eventGroup, Hash eventType);Parameters
| Name | Type | Description |
|---|---|---|
eventGroup | int | — |
eventType | Hash | — |
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
local retval = GetEventExists(eventGroup, eventType)
-- always works, by hash
local retval = Citizen.InvokeNative(0xC9F59C0A710ECD34, eventGroup, eventType, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = GetEventExists(eventGroup, eventType);
// by hash
const retval = Citizen.invokeNative('0xC9F59C0A710ECD34', eventGroup, eventType, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xC9F59C0A710ECD34, eventGroup, eventType);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Enums and flags
- eEventType 492 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.