{"hash":"0xA85E614430EFF816","ns":"SCRIPT","name":"GET_EVENT_AT_INDEX","slug":"GET_EVENT_AT_INDEX","official":true,"named":true,"luaName":"GetEventAtIndex","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"eventGroup","type":"int"},{"name":"eventIndex","type":"int"}],"summary":"Returns event name hash:","descriptions":[{"source":"alloc8or","format":"text","body":"eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_SCRIPT_ERRORS (CEventGroupScriptErrors)\n\nReturns event name hash: https://alloc8or.re/rdr3/doc/enums/eEventType.txt"}],"examples":[],"aliases":[],"enums":["eEventType"],"related":[],"build":"1207","gtaHash":"0xD8F66A3A60C62153","gtaJhash":"0xB49C1442","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/SCRIPT/GET_EVENT_AT_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/SCRIPT/GET_EVENT_AT_INDEX.md","snippets":{"lua":"local retval = GetEventAtIndex(eventGroup, eventIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0xA85E614430EFF816, eventGroup, eventIndex, Citizen.ResultAsInteger())","js":"const retval = GetEventAtIndex(eventGroup, eventIndex);","jsInvoke":"const retval = Citizen.invokeNative('0xA85E614430EFF816', eventGroup, eventIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xA85E614430EFF816, eventGroup, eventIndex);","notes":[]}}