GET_EVENT_EXISTS
Returns true if an event of type eventType is currently queued in eventGroup.
Signature
BOOL GET_EVENT_EXISTS(int eventGroup, Hash eventType); // 0xC9F59C0A710ECD34 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | eventGroup | int |
| 2 | eventType | Hash |
Facts
| Name | GET_EVENT_EXISTS |
|---|---|
| Hash | 0xC9F59C0A710ECD34 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xC9F59C0A710ECD34, -- GET_EVENT_EXISTS
0, -- int eventGroup
GetHashKey("name") -- Hash eventType
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xC9F59C0A710ECD34", // GET_EVENT_EXISTS
0, // int eventGroup
GetHashKey("name"), // Hash eventType
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xC9F59C0A710ECD34, // GET_EVENT_EXISTS
0, // int eventGroup
(uint)API.GetHashKey("name") // Hash eventType
);Related SCRIPT natives
- GET_EVENT_AT_INDEX
- GET_EVENT_DATA
- 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
- _AWARDS_GET_UNLOCK_CLAIM_DATA
- _GET_GLOBAL_BLOCK_CAN_BE_ACCESSED
- _GET_HASH_OF_THREAD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.