The Lab
SCRIPT native

GET_EVENT_EXISTS

returns BOOL2 paramsbuild 1207

Returns true if an event of type eventType is currently queued in eventGroup.

Signature

C
BOOL GET_EVENT_EXISTS(int eventGroup, Hash eventType); // 0xC9F59C0A710ECD34 b1207

Parameters

#NameType
1eventGroupint
2eventTypeHash

Facts

Facts about GET_EVENT_EXISTS
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.

Lua
local result = Citizen.InvokeNative(0xC9F59C0A710ECD34, -- GET_EVENT_EXISTS
  0, -- int eventGroup
  GetHashKey("name") -- Hash eventType
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xC9F59C0A710ECD34", // GET_EVENT_EXISTS
  0, // int eventGroup
  GetHashKey("name"), // Hash eventType
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC9F59C0A710ECD34, // GET_EVENT_EXISTS
  0, // int eventGroup
  (uint)API.GetHashKey("name") // Hash eventType
);
All SCRIPT natives

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