TASK_FLEE_COORD
Hash
0x58428248BF4B64E4Runtime name
TaskFleeCoordNamespaceTASK
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
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
x | float | — |
y | float | — |
z | float | — |
fleeStyle | int | — |
p5 | int | — |
p6 | float | — |
duration | int | — |
p8 | int | — |
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
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#
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);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eFleeStyle 13 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.