GET_EVENT_AT_INDEX
Returns event name hash:
Hash
0xA85E614430EFF816Runtime name
GetEventAtIndexNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD8F66A3A60C62153Signature
Hash GET_EVENT_AT_INDEX(int eventGroup, int eventIndex);Parameters
| Name | Type | Description |
|---|---|---|
eventGroup | int | — |
eventIndex | int | — |
Returns Hash
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)
Returns event name hash: https://alloc8or.re/rdr3/doc/enums/eEventType.txt
Usage
local retval = GetEventAtIndex(eventGroup, eventIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA85E614430EFF816, eventGroup, eventIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEventAtIndex(eventGroup, eventIndex);
// by hash
const retval = Citizen.invokeNative('0xA85E614430EFF816', eventGroup, eventIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xA85E614430EFF816, eventGroup, eventIndex);Enums and flags
- eEventType 492 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.