GET_NUMBER_OF_EVENTS
Hash
0x5CE8DE5909565748Runtime name
GetNumberOfEventsNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5F92A689A06620AASignature
int GET_NUMBER_OF_EVENTS(int eventGroup);Parameters
| Name | Type | Description |
|---|---|---|
eventGroup | int | — |
Returns int
Description
eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_ERRORS (CEventGroupScriptErrors)
Usage
local retval = GetNumberOfEvents(eventGroup)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5CE8DE5909565748, eventGroup, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNumberOfEvents(eventGroup);
// by hash
const retval = Citizen.invokeNative('0x5CE8DE5909565748', eventGroup, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x5CE8DE5909565748, eventGroup);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.