# PED::SET_PED_FLEE_ATTRIBUTES

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

## Signature

```c
void SET_PED_FLEE_ATTRIBUTES(Ped ped, int attributeFlags, BOOL enable);
```

## Parameters

- `ped` (`Ped`)
- `attributeFlags` (`int`)
- `enable` (`BOOL`)

## Returns

`void`

## Description

https://github.com/femga/rdr3_discoveries/tree/master/AI/FLEE_ATTRIBUTES

attributeFlags:
enum eFleeAttribute
{
	FA_FORCE_EXIT_VEHICLE = (1 << 16),
	FA_DISABLE_MOUNT_USAGE = (1 << 20),
	FA_DISABLE_ENTER_VEHICLES = (1 << 22),
};

## Usage

### Lua

```lua
SetPedFleeAttributes(ped, attributeFlags, enable)

-- always available, by hash
Citizen.InvokeNative(0x70A2D1137C8ED7C9, ped, attributeFlags, enable)
```

### JavaScript

```js
SetPedFleeAttributes(ped, attributeFlags, enable);

// by hash
Citizen.invokeNative('0x70A2D1137C8ED7C9', ped, attributeFlags, enable);
```

### C#

```csharp
Function.Call((Hash)0x70A2D1137C8ED7C9, ped, attributeFlags, enable);
```

*Sources: alloc8or RDR3 NativeDB.*
