# PED::IS_EVENT_IN_QUEUE

- **Hash:** `0xC8D523BF5BBD3808`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsEventInQueue`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/IS_EVENT_IN_QUEUE

## Signature

```c
BOOL IS_EVENT_IN_QUEUE(Ped ped, Hash eventType);
```

## Parameters

- `ped` (`Ped`)
- `eventType` (`Hash`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = IsEventInQueue(ped, eventType)

-- always available, by hash
local retval = Citizen.InvokeNative(0xC8D523BF5BBD3808, ped, eventType, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsEventInQueue(ped, eventType);

// by hash
const retval = Citizen.invokeNative('0xC8D523BF5BBD3808', ped, eventType, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xC8D523BF5BBD3808, ped, eventType);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.

## Related enums

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

*Sources: alloc8or RDR3 NativeDB.*
