The Lab
PLAYER native

SET_ALL_RANDOM_PEDS_FLEE

returns void2 paramsbuild 1207

Makes all random peds flee from player when toggle is true.

Signature

C
void SET_ALL_RANDOM_PEDS_FLEE(Player player, BOOL toggle); // 0xE705309B8C6445A4 b1207

Parameters

#NameType
1playerPlayer
2toggleBOOL

Facts

Facts about SET_ALL_RANDOM_PEDS_FLEE
Name
SET_ALL_RANDOM_PEDS_FLEE
Hash
0xE705309B8C6445A4
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xE705309B8C6445A4, -- SET_ALL_RANDOM_PEDS_FLEE
  PlayerId(), -- Player player
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0xE705309B8C6445A4", // SET_ALL_RANDOM_PEDS_FLEE
  PlayerId(), // Player player
  false // BOOL toggle
);
C#
Function.Call((Hash)0xE705309B8C6445A4, // SET_ALL_RANDOM_PEDS_FLEE
  API.PlayerId(), // Player player
  false // BOOL toggle
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.