RedM Natives

TASK_WANDER_IN_AREA

Hash0xE054346CA3A0F315
Runtime nameTaskWanderInArea
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE054346CA3A0F315

Signature

void TASK_WANDER_IN_AREA(Ped ped, float x, float y, float z, float radius, float p5, float p6, int p7);

Parameters

NameTypeDescription
pedPed—
xfloat—
yfloat—
zfloat—
radiusfloat—
p5float—
p6float—
p7int—

Returns void

Usage

Lua
TaskWanderInArea(ped, x, y, z, radius, p5, p6, p7)

-- always works, by hash
Citizen.InvokeNative(0xE054346CA3A0F315, ped, x, y, z, radius, p5, p6, p7)
JavaScript and C#
JavaScript
TaskWanderInArea(ped, x, y, z, radius, p5, p6, p7);

// by hash
Citizen.invokeNative('0xE054346CA3A0F315', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, radius + 0.0000001, p5 + 0.0000001, p6 + 0.0000001, p7);
C#
Function.Call((Hash)0xE054346CA3A0F315, ped, x, y, z, radius, p5, p6, p7);
  • 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.

Sources

alloc8or RDR3 NativeDB

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