TasksClient

taskWanderStandard

TASK_WANDER_STANDARD0xBB9CE077274F6A1B

The GTA V native TASK_WANDER_STANDARD of the TASK namespace, as LS:MP client scripts call it: the global function taskWanderStandard, in JavaScript and in Lua.

SignatureJavaScript
taskWanderStandard(ped: Ped, heading: number, flags: number): void
SignatureLua
taskWanderStandard(ped: Ped, heading: number, flags: integer)

Usage

JavaScript
taskWanderStandard(ped, heading, flags);
Lua
taskWanderStandard(ped, heading, flags)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
headingfloatnumbernumber
flagsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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.

Reference

Namespace
Tasks TASK
In the game
void TASK_WANDER_STANDARD(Ped ped, float heading, int flags)
Hash
0xBB9CE077274F6A1B

Open in the interactive natives reference