TasksClient

taskFollowPointRoute

TASK_FOLLOW_POINT_ROUTE0x595583281858626E

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

SignatureJavaScript
taskFollowPointRoute(ped: Ped, speed: number, mode: number): void
SignatureLua
taskFollowPointRoute(ped: Ped, speed: number, mode: integer)

Usage

JavaScript
taskFollowPointRoute(ped, speed, mode);
Lua
taskFollowPointRoute(ped, speed, mode)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
speedfloatnumbernumber
modeintnumberinteger

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.

MulleKD19: Makes the ped go on the created point route.

ped: The ped to give the task to.
speed: The speed to move at in m/s.
int: Unknown. Can be 0, 1, 2 or 3.

Example:

taskFlushRoute();
taskExtendRoute(0f, 0f, 70f);
taskExtendRoute(10f, 0f, 70f);
taskExtendRoute(10f, 10f, 70f);
taskFollowPointRoute(getPlayerPed(), 1f, 0);

Reference

Namespace
Tasks TASK
In the game
void TASK_FOLLOW_POINT_ROUTE(Ped ped, float speed, int mode)
Hash
0x595583281858626E

Open in the interactive natives reference