_EVENT_GET_TIME_SINCE_EVENT
Returns the time elapsed since the entity last recorded an event of type eventType.
Signature
int _EVENT_GET_TIME_SINCE_EVENT(Entity entity, Hash eventType, int p2, int p3); // 0xC6A7DC546E94FED5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | eventType | Hash |
| 3 | p2 | int |
| 4 | p3 | int |
Facts
| Name | _EVENT_GET_TIME_SINCE_EVENT |
|---|---|
| Hash | 0xC6A7DC546E94FED5 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xC6A7DC546E94FED5, -- _EVENT_GET_TIME_SINCE_EVENT
PlayerPedId(), -- Entity entity
GetHashKey("name"), -- Hash eventType
0, -- int p2
0, -- int p3
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xC6A7DC546E94FED5", // _EVENT_GET_TIME_SINCE_EVENT
PlayerPedId(), // Entity entity
GetHashKey("name"), // Hash eventType
0, // int p2
0, // int p3
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xC6A7DC546E94FED5, // _EVENT_GET_TIME_SINCE_EVENT
API.PlayerPedId(), // Entity entity
(uint)API.GetHashKey("name"), // Hash eventType
0, // int p2
0 // int p3
);Related EVENT natives
- _EVENT_GET_TARGET_ENTITY_FROM_EVENT
- _EVENT_GET_RECENT_EVENT
- _EVENT_GET_SOURCE_ENTITY_FROM_EVENT
- _EVENT_FLUSH_ALL_EVENT_TRACKERS
- _ADD_MODEL_TO_EVENT_MONITOR
- _CREATE_SHOCKING_EVENT
- _IS_EVENT_TRACKER_ACTIVE
- _SET_EVENT_TRACKER_FOR_PED
- ADD_SHOCKING_EVENT_AT_POSITION
- ADD_SHOCKING_EVENT_FOR_ENTITY
- IS_SHOCKING_EVENT_IN_SPHERE
- REMOVE_SHOCKING_EVENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.