# EVENT::_EVENT_GET_RECENT_EVENT

- **Hash:** `0x796EECFF0C6D39BE`
- **Namespace:** EVENT
- **Runtime name (Lua/JS):** `EventGetRecentEvent`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/EVENT/_EVENT_GET_RECENT_EVENT

## Signature

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

## Parameters

- `entity` (`Entity`)
- `p1` (`int`)
- `p2` (`int`)

## Returns

`Hash`

## Description

Returns eventType

## Usage

### Lua

```lua
local retval = EventGetRecentEvent(entity, p1, p2)

-- always available, by hash
local retval = Citizen.InvokeNative(0x796EECFF0C6D39BE, entity, p1, p2, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = EventGetRecentEvent(entity, p1, p2);

// by hash
const retval = Citizen.invokeNative('0x796EECFF0C6D39BE', entity, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
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.

## Related enums

- [eEventType](https://natives.borderlinerp.com/enums/eEventType.md) — 492 values

*Sources: alloc8or RDR3 NativeDB.*
