The Lab
EVENT native

_IS_EVENT_TRACKER_ACTIVE

returns BOOL2 paramsbuild 1207

Returns true if the named event tracker is active for the given shocking event.

Signature

C
BOOL _IS_EVENT_TRACKER_ACTIVE(const char* eventName, Hash shockingEvent); // 0x797B3D4D92E56094 b1207

Parameters

#NameType
1eventNameconst char*
2shockingEventHash

Facts

Facts about _IS_EVENT_TRACKER_ACTIVE
Name
_IS_EVENT_TRACKER_ACTIVE
Hash
0x797B3D4D92E56094
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(0x797B3D4D92E56094, -- _IS_EVENT_TRACKER_ACTIVE
  "text", -- const char* eventName
  GetHashKey("name") -- Hash shockingEvent
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x797B3D4D92E56094", // _IS_EVENT_TRACKER_ACTIVE
  "text", // const char* eventName
  GetHashKey("name"), // Hash shockingEvent
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x797B3D4D92E56094, // _IS_EVENT_TRACKER_ACTIVE
  "text", // const char* eventName
  (uint)API.GetHashKey("name") // Hash shockingEvent
);
All EVENT natives

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