| Property | Value |
|---|---|
| Native Name | GET_EVENT_AT_INDEX |
| Hash | 0xA85E614430EFF816 |
| Return Type | Hash |
| Build | 1207 |
| API Set | client |
| Parameters | eventGroup (int), eventIndex (int) |
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
Lua (Direct):
local result = GetEventAtIndex(eventGroup, eventIndex)
Lua (Hash):
local result = Citizen.InvokeNative(0xA85E614430EFF816, eventGroup, eventIndex)