_EVENT_GET_TIME_SINCE_EVENT
Hash
0xC6A7DC546E94FED5Runtime name
EventGetTimeSinceEventNamespaceEVENT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _EVENT_GET_TIME_SINCE_EVENT(Entity entity, Hash eventType, int p2, int p3);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
eventType | Hash | — |
p2 | int | — |
p3 | int | — |
Returns int
Usage
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#
const retval = EventGetTimeSinceEvent(entity, eventType, p2, p3);
// by hash
const retval = Citizen.invokeNative('0xC6A7DC546E94FED5', entity, eventType, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Enums and flags
- eEventType 492 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.