_EVENT_GET_RECENT_EVENT
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
Hash _EVENT_GET_RECENT_EVENT(Entity entity, int p1, int p2); // 0x796EECFF0C6D39BE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | int |
| 3 | p2 | int |
Facts
| 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.
local hash = Citizen.InvokeNative(0x796EECFF0C6D39BE, -- _EVENT_GET_RECENT_EVENT
PlayerPedId(), -- Entity entity
0, -- int p1
0, -- int p2
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x796EECFF0C6D39BE", // _EVENT_GET_RECENT_EVENT
PlayerPedId(), // Entity entity
0, // int p1
0, // int p2
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x796EECFF0C6D39BE, // _EVENT_GET_RECENT_EVENT
API.PlayerPedId(), // Entity entity
0, // int p1
0 // int p2
);Related EVENT natives
- _EVENT_GET_SOURCE_ENTITY_FROM_EVENT
- _EVENT_GET_TARGET_ENTITY_FROM_EVENT
- _EVENT_GET_TIME_SINCE_EVENT
- _EVENT_FLUSH_ALL_EVENT_TRACKERS
- _ADD_MODEL_TO_EVENT_MONITOR
- _CREATE_SHOCKING_EVENT
- _IS_EVENT_TRACKER_ACTIVE
- _SET_EVENT_TRACKER_FOR_PED
- ADD_SHOCKING_EVENT_AT_POSITION
- ADD_SHOCKING_EVENT_FOR_ENTITY
- IS_SHOCKING_EVENT_IN_SPHERE
- REMOVE_SHOCKING_EVENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.