taskUseNearestScenarioChainToCoordWarp
TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD_WARP0x97A28E63F0BA5631The 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.
taskUseNearestScenarioChainToCoordWarp(
ped: Ped,
x: number,
y: number,
z: number,
radius: number,
timeToLeave: number
): voidtaskUseNearestScenarioChainToCoordWarp(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
radius | float | number | number |
timeToLeave | int | number | integer |
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