The Lab
EVENT native

_EVENT_GET_RECENT_EVENT

returns Hash3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to return the hash of a recent event involving the entity. The extra integer parameters are not documented.

Signature

C
Hash _EVENT_GET_RECENT_EVENT(Entity entity, int p1, int p2); // 0x796EECFF0C6D39BE b1207

Parameters

#NameType
1entityEntity
2p1int
3p2int

Facts

Facts about _EVENT_GET_RECENT_EVENT
Name
_EVENT_GET_RECENT_EVENT
Hash
0x796EECFF0C6D39BE
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x796EECFF0C6D39BE, -- _EVENT_GET_RECENT_EVENT
  PlayerPedId(), -- Entity entity
  0, -- int p1
  0, -- int p2
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x796EECFF0C6D39BE", // _EVENT_GET_RECENT_EVENT
  PlayerPedId(), // Entity entity
  0, // int p1
  0, // int p2
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x796EECFF0C6D39BE, // _EVENT_GET_RECENT_EVENT
  API.PlayerPedId(), // Entity entity
  0, // int p1
  0 // int p2
);
All EVENT natives

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