TasksClient

taskUseNearestScenarioChainToCoordWarp

TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD_WARP0x97A28E63F0BA5631

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

SignatureJavaScript
taskUseNearestScenarioChainToCoordWarp(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  radius: number,
  timeToLeave: number
): void
SignatureLua
taskUseNearestScenarioChainToCoordWarp(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  radius: number,
  timeToLeave: integer
)

Usage

JavaScript
taskUseNearestScenarioChainToCoordWarp(ped, x, y, z, radius, timeToLeave);
Lua
taskUseNearestScenarioChainToCoordWarp(ped, x, y, z, radius, timeToLeave)

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
taskUseNearestScenarioChainToCoordWarp(ped, pos, radius, timeToLeave);
Lua · with vectors
taskUseNearestScenarioChainToCoordWarp(ped, pos, radius, timeToLeave)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber
timeToLeaveintnumberinteger

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.

p5 is always -1 or 0 in scripts

Reference

Namespace
Tasks TASK
In the game
void TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD_WARP(Ped ped, float x, float y, float z, float radius, int timeToLeave)
Hash
0x97A28E63F0BA5631

Open in the interactive natives reference