_SET_PED_PATH_AVOID_TRAFFIC
Hash
0x7C015D8BCEC72CF4Runtime name
SetPedPathAvoidTrafficNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PED_PATH_AVOID_TRAFFIC(Ped ped, BOOL avoidTraffic);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
avoidTraffic | BOOL | — |
Returns void
Usage
SetPedPathAvoidTraffic(ped, avoidTraffic)
-- always works, by hash
Citizen.InvokeNative(0x7C015D8BCEC72CF4, ped, avoidTraffic)JavaScript and C#
SetPedPathAvoidTraffic(ped, avoidTraffic);
// by hash
Citizen.invokeNative('0x7C015D8BCEC72CF4', ped, avoidTraffic);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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.