RedM Natives

_SET_PED_PATH_AVOID_TRAFFIC

Hash0x7C015D8BCEC72CF4
Runtime nameSetPedPathAvoidTraffic
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_PATH_AVOID_TRAFFIC(Ped ped, BOOL avoidTraffic);

Parameters

NameTypeDescription
pedPed—
avoidTrafficBOOL—

Returns void

Usage

Lua
SetPedPathAvoidTraffic(ped, avoidTraffic)

-- always works, by hash
Citizen.InvokeNative(0x7C015D8BCEC72CF4, ped, avoidTraffic)
JavaScript and C#
JavaScript
SetPedPathAvoidTraffic(ped, avoidTraffic);

// by hash
Citizen.invokeNative('0x7C015D8BCEC72CF4', ped, avoidTraffic);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.