GET_EVENT_AT_INDEX
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
Hash GET_EVENT_AT_INDEX(int eventGroup, int eventIndex); // 0xA85E614430EFF816 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | eventGroup | int |
| 2 | eventIndex | int |
Facts
| 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.
local hash = Citizen.InvokeNative(0xA85E614430EFF816, -- GET_EVENT_AT_INDEX
0, -- int eventGroup
0, -- int eventIndex
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0xA85E614430EFF816", // GET_EVENT_AT_INDEX
0, // int eventGroup
0, // int eventIndex
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0xA85E614430EFF816, // GET_EVENT_AT_INDEX
0, // int eventGroup
0 // int eventIndex
);Related SCRIPT natives
- GET_EVENT_DATA
- GET_EVENT_EXISTS
- _CLEAR_PLAYER_BIT_AT_INDEX
- _IS_PLAYER_BIT_SET_AT_INDEX
- _SET_PLAYER_BIT_AT_INDEX
- GET_BLOCK_OF_PLAYER_BITS
- GET_HASH_OF_THIS_SCRIPT_NAME
- GET_ID_OF_THIS_THREAD
- GET_NO_LOADING_SCREEN
- GET_NUMBER_OF_EVENTS
- GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH
- GET_THREAD_EXISTENCE_DETAILS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.