# PED::IS_PED_EVASIVE_DIVING

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

## Signature

```c
BOOL IS_PED_EVASIVE_DIVING(Ped ped, Entity* evadingEntity);
```

## Parameters

- `ped` (`Ped`)
- `evadingEntity` (`Entity*`)

## Returns

`BOOL`

## Description

Presumably returns the Entity that the Ped is currently diving out of the way of.

## Usage

### Lua

```lua
local retval, evadingEntity = IsPedEvasiveDiving(ped, evadingEntity)

-- always available, by hash
local retval, evadingEntity = Citizen.InvokeNative(0x414641C26E105898, ped, Citizen.PointerValueIntInitialized(evadingEntity), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, evadingEntity] = IsPedEvasiveDiving(ped, evadingEntity);

// by hash
const [retval, evadingEntity] = Citizen.invokeNative('0x414641C26E105898', ped, Citizen.pointerValueIntInitialized(evadingEntity), Citizen.returnResultAnyway());
```

### C#

```csharp
var evadingEntity = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x414641C26E105898, ped, evadingEntity);
// evadingEntity.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

*Sources: alloc8or RDR3 NativeDB.*
