The Lab
TASK native

TASK_ANIMAL_FLEE

returns void3 paramsbuild 1207

Tasks the animal ped to flee from targetPed.

Signature

C
void TASK_ANIMAL_FLEE(Ped ped, Ped targetPed, Any p2); // 0xA899B61C66F09134 b1207

Parameters

#NameType
1pedPed
2targetPedPed
3p2Any

Facts

Facts about TASK_ANIMAL_FLEE
Name
TASK_ANIMAL_FLEE
Hash
0xA899B61C66F09134
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(0xA899B61C66F09134, -- TASK_ANIMAL_FLEE
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Ped targetPed
  0 -- Any p2
)
JavaScript
Citizen.invokeNative("0xA899B61C66F09134", // TASK_ANIMAL_FLEE
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped targetPed
  0 // Any p2
);
C#
Function.Call((Hash)0xA899B61C66F09134, // TASK_ANIMAL_FLEE
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Ped targetPed
  0 // Any p2
);
All TASK natives

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