The Lab
SCRIPT native

GET_EVENT_AT_INDEX

returns Hash2 paramsbuild 1207

Returns the type hash of the event at eventIndex in the event queue eventGroup.

Loop from 0 to GET_NUMBER_OF_EVENTS each frame to react to game events.

Signature

C
Hash GET_EVENT_AT_INDEX(int eventGroup, int eventIndex); // 0xA85E614430EFF816 b1207

Parameters

#NameType
1eventGroupint
2eventIndexint

Facts

Facts about GET_EVENT_AT_INDEX
Name
GET_EVENT_AT_INDEX
Hash
0xA85E614430EFF816
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0xA85E614430EFF816, -- GET_EVENT_AT_INDEX
  0, -- int eventGroup
  0, -- int eventIndex
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xA85E614430EFF816", // GET_EVENT_AT_INDEX
  0, // int eventGroup
  0, // int eventIndex
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xA85E614430EFF816, // GET_EVENT_AT_INDEX
  0, // int eventGroup
  0 // int eventIndex
);
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.