TASK_WANDER_STANDARD
Makes ped walk around the area.
Hash
0xBB9CE077274F6A1BRuntime name
TaskWanderStandardNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xBB9CE077274F6A1BSignature
void TASK_WANDER_STANDARD(Ped ped, float p1, int p2);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | float | — |
p2 | int | — |
Returns void
Description
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.
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
TaskWanderStandard(ped, p1, p2)
-- always works, by hash
Citizen.InvokeNative(0xBB9CE077274F6A1B, ped, p1, p2)JavaScript and C#
TaskWanderStandard(ped, p1, p2);
// by hash
Citizen.invokeNative('0xBB9CE077274F6A1B', ped, p1 + 0.0000001, p2);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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.