RedM Natives

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

Hash0xE705309B8C6445A4
Runtime nameSetAllRandomPedsFlee
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x056E0FE8534C2949

Signature

void SET_ALL_RANDOM_PEDS_FLEE(Player player, BOOL toggle);

Parameters

NameTypeDescription
playerPlayer—
toggleBOOL—

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

Lua
SetAllRandomPedsFlee(player, toggle)

-- always works, by hash
Citizen.InvokeNative(0xE705309B8C6445A4, player, toggle)
JavaScript and C#
JavaScript
SetAllRandomPedsFlee(player, toggle);

// by hash
Citizen.invokeNative('0xE705309B8C6445A4', player, toggle);
C#
Function.Call((Hash)0xE705309B8C6445A4, player, toggle);

Sources

alloc8or RDR3 NativeDB

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