SET_ALL_RANDOM_PEDS_FLEE
Sets whether all random peds will run away from player if they are agitated (threatened) (bool=true), or some peds can stand up for themselves (bool=false).
Hash
0xE705309B8C6445A4Runtime name
SetAllRandomPedsFleeNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x056E0FE8534C2949Signature
void SET_ALL_RANDOM_PEDS_FLEE(Player player, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
toggle | BOOL | — |
Returns void
Description
Sets whether all random peds will run away from player if they are agitated (threatened) (bool=true), or some peds can stand up for themselves (bool=false).
Usage
SetAllRandomPedsFlee(player, toggle)
-- always works, by hash
Citizen.InvokeNative(0xE705309B8C6445A4, player, toggle)JavaScript and C#
SetAllRandomPedsFlee(player, toggle);
// by hash
Citizen.invokeNative('0xE705309B8C6445A4', player, toggle);Function.Call((Hash)0xE705309B8C6445A4, player, toggle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.