RedM Natives

_EVENT_GET_RECENT_EVENT

Returns eventType

Hash0x796EECFF0C6D39BE
Runtime nameEventGetRecentEvent
NamespaceEVENT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Hash _EVENT_GET_RECENT_EVENT(Entity entity, int p1, int p2);

Parameters

NameTypeDescription
entityEntity—
p1int—
p2int—

Returns Hash

Description

Returns eventType

Usage

Lua
local retval = EventGetRecentEvent(entity, p1, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x796EECFF0C6D39BE, entity, p1, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = EventGetRecentEvent(entity, p1, p2);

// by hash
const retval = Citizen.invokeNative('0x796EECFF0C6D39BE', entity, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x796EECFF0C6D39BE, entity, p1, p2);
  • 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.