# PED::IS_PED_RESPONDING_TO_EVENT

- **Hash:** `0x625B774D75C87068`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsPedRespondingToEvent`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/IS_PED_RESPONDING_TO_EVENT

## Signature

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

## Parameters

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

## Returns

`BOOL`

## Description

eventType: https://alloc8or.re/rdr3/doc/enums/eEventType.txt

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x625B774D75C87068, 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.*
