RedM Natives

TASK_FLEE_COORD

Hash0x58428248BF4B64E4
Runtime nameTaskFleeCoord
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_FLEE_COORD(Ped ped, float x, float y, float z, int fleeStyle, int p5, float p6, int duration, int p8);

Parameters

NameTypeDescription
pedPed—
xfloat—
yfloat—
zfloat—
fleeStyleint—
p5int—
p6float—
durationint—
p8int—

Returns void

Description

Params: p5 = some flag?, p6 = -1.0f, p8 = 0 in R* Scripts
fleeStyle: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eFleeStyle

Usage

Lua
TaskFleeCoord(ped, x, y, z, fleeStyle, p5, p6, duration, p8)

-- always works, by hash
Citizen.InvokeNative(0x58428248BF4B64E4, ped, x, y, z, fleeStyle, p5, p6, duration, p8)
JavaScript and C#
JavaScript
TaskFleeCoord(ped, x, y, z, fleeStyle, p5, p6, duration, p8);

// by hash
Citizen.invokeNative('0x58428248BF4B64E4', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, fleeStyle, p5, p6 + 0.0000001, duration, p8);
C#
Function.Call((Hash)0x58428248BF4B64E4, ped, x, y, z, fleeStyle, p5, p6, duration, p8);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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