TasksClient

taskExtendRoute

TASK_EXTEND_ROUTE0x1E7889778264843A

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

SignatureJavaScript
taskExtendRoute(x: number, y: number, z: number): void
SignatureLua
taskExtendRoute(x: number, y: number, z: number)

Usage

JavaScript
taskExtendRoute(x, y, z);
Lua
taskExtendRoute(x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
taskExtendRoute(pos);
Lua · with vectors
taskExtendRoute(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

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: Adds a new point to the current point route. Call taskFlushRoute before the first call to this. Call taskFollowPointRoute to make the Ped go the route.

A maximum of 8 points can be added.

Reference

Namespace
Tasks TASK
In the game
void TASK_EXTEND_ROUTE(float x, float y, float z)
Hash
0x1E7889778264843A

Open in the interactive natives reference