RedM Natives

_EVENT_GET_TIME_SINCE_EVENT

Hash0xC6A7DC546E94FED5
Runtime nameEventGetTimeSinceEvent
NamespaceEVENT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _EVENT_GET_TIME_SINCE_EVENT(Entity entity, Hash eventType, int p2, int p3);

Parameters

NameTypeDescription
entityEntity—
eventTypeHash—
p2int—
p3int—

Returns int

Usage

Lua
local retval = EventGetTimeSinceEvent(entity, eventType, p2, p3)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC6A7DC546E94FED5, entity, eventType, p2, p3, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = EventGetTimeSinceEvent(entity, eventType, p2, p3);

// by hash
const retval = Citizen.invokeNative('0xC6A7DC546E94FED5', entity, eventType, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xC6A7DC546E94FED5, entity, eventType, p2, p3);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.