The Lab
EVENT native

_EVENT_GET_TIME_SINCE_EVENT

returns int4 paramsbuild 1207

Returns the time elapsed since the entity last recorded an event of type eventType.

Signature

C
int _EVENT_GET_TIME_SINCE_EVENT(Entity entity, Hash eventType, int p2, int p3); // 0xC6A7DC546E94FED5 b1207

Parameters

#NameType
1entityEntity
2eventTypeHash
3p2int
4p3int

Facts

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

Lua
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)
JavaScript
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)
C#
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
);
All EVENT natives

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