_IS_EVENT_TRACKER_ACTIVE
Returns true if the named event tracker is active for the given shocking event.
Signature
BOOL _IS_EVENT_TRACKER_ACTIVE(const char* eventName, Hash shockingEvent); // 0x797B3D4D92E56094 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | eventName | const char* |
| 2 | shockingEvent | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0x797B3D4D92E56094, -- _IS_EVENT_TRACKER_ACTIVE
"text", -- const char* eventName
GetHashKey("name") -- Hash shockingEvent
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x797B3D4D92E56094", // _IS_EVENT_TRACKER_ACTIVE
"text", // const char* eventName
GetHashKey("name"), // Hash shockingEvent
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x797B3D4D92E56094, // _IS_EVENT_TRACKER_ACTIVE
"text", // const char* eventName
(uint)API.GetHashKey("name") // Hash shockingEvent
);Related EVENT natives
- _EVENT_FLUSH_ALL_EVENT_TRACKERS
- _EVENT_GET_RECENT_EVENT
- _EVENT_GET_SOURCE_ENTITY_FROM_EVENT
- _EVENT_GET_TARGET_ENTITY_FROM_EVENT
- _EVENT_GET_TIME_SINCE_EVENT
- _SET_EVENT_TRACKER_FOR_PED
- IS_SHOCKING_EVENT_IN_SPHERE
- _ADD_MODEL_TO_EVENT_MONITOR
- _CREATE_SHOCKING_EVENT
- ADD_SHOCKING_EVENT_AT_POSITION
- ADD_SHOCKING_EVENT_FOR_ENTITY
- REMOVE_SHOCKING_EVENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.