TasksClient

taskStandGuard

TASK_STAND_GUARD0xAE032F8BBA959E90

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

SignatureJavaScript
taskStandGuard(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  heading: number,
  scenarioName: string
): void
SignatureLua
taskStandGuard(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  heading: number,
  scenarioName: string
)

Usage

JavaScript
taskStandGuard(ped, x, y, z, heading, scenarioName);
Lua
taskStandGuard(ped, x, y, z, heading, scenarioName)

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
taskStandGuard(ped, pos, heading, scenarioName);
Lua · with vectors
taskStandGuard(ped, pos, heading, scenarioName)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
headingfloatnumbernumber
scenarioNamestringstringstring

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.

scenarioName example: "WORLD_HUMAN_GUARD_STAND"

Reference

Namespace
Tasks TASK
In the game
void TASK_STAND_GUARD(Ped ped, float x, float y, float z, float heading, const char* scenarioName)
Hash
0xAE032F8BBA959E90

Open in the interactive natives reference