RedM Natives

TASK_WANDER_STANDARD

Makes ped walk around the area.

Hash0xBB9CE077274F6A1B
Runtime nameTaskWanderStandard
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBB9CE077274F6A1B

Signature

void TASK_WANDER_STANDARD(Ped ped, float p1, int p2);

Parameters

NameTypeDescription
pedPed—
p1float—
p2int—

Returns void

Description

alloc8or RDR3 NativeDB

Makes ped walk around the area.

set p1 to 10.0f and p2 to 10 if you want the ped to walk anywhere without a duration.

VORPCORE RDR3natives

Makes ped walk around the area the params p1 p2 seems to not affect anything but p2 is either 0 or 1 and p1 is mostly 1.0 or ped heading

Usage

Lua
TaskWanderStandard(ped, p1, p2)

-- always works, by hash
Citizen.InvokeNative(0xBB9CE077274F6A1B, ped, p1, p2)
JavaScript and C#
JavaScript
TaskWanderStandard(ped, p1, p2);

// by hash
Citizen.invokeNative('0xBB9CE077274F6A1B', ped, p1 + 0.0000001, p2);
C#
Function.Call((Hash)0xBB9CE077274F6A1B, ped, p1, p2);
  • 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 · VORPCORE RDR3natives

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