TasksClient

taskPlaneChase

TASK_PLANE_CHASE0x2D2386F273FF7A25

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

SignatureJavaScript
taskPlaneChase(
  pilot: Ped,
  entityToFollow: Entity,
  x: number,
  y: number,
  z: number
): void
SignatureLua
taskPlaneChase(
  pilot: Ped,
  entityToFollow: Entity,
  x: number,
  y: number,
  z: number
)

Usage

JavaScript
taskPlaneChase(pilot, entityToFollow, x, y, z);
Lua
taskPlaneChase(pilot, entityToFollow, 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
taskPlaneChase(pilot, entityToFollow, pos);
Lua · with vectors
taskPlaneChase(pilot, entityToFollow, pos)

Parameters

ParameterTypeJavaScriptLua
pilotPednumberinteger
entityToFollowEntitynumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_PLANE_CHASE(Ped pilot, Entity entityToFollow, float x, float y, float z)
Hash
0x2D2386F273FF7A25

Open in the interactive natives reference