# TASK::_SET_PED_PATH_AVOID_TRAFFIC

- **Hash:** `0x7C015D8BCEC72CF4`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `SetPedPathAvoidTraffic`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/_SET_PED_PATH_AVOID_TRAFFIC

## Signature

```c
void _SET_PED_PATH_AVOID_TRAFFIC(Ped ped, BOOL avoidTraffic);
```

## Parameters

- `ped` (`Ped`)
- `avoidTraffic` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetPedPathAvoidTraffic(ped, avoidTraffic)

-- always available, by hash
Citizen.InvokeNative(0x7C015D8BCEC72CF4, ped, avoidTraffic)
```

### JavaScript

```js
SetPedPathAvoidTraffic(ped, avoidTraffic);

// by hash
Citizen.invokeNative('0x7C015D8BCEC72CF4', ped, avoidTraffic);
```

### C#

```csharp
Function.Call((Hash)0x7C015D8BCEC72CF4, ped, avoidTraffic);
```

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

*Sources: alloc8or RDR3 NativeDB.*
