taskStandGuard
TASK_STAND_GUARD0xAE032F8BBA959E90The 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.
taskStandGuard(
ped: Ped,
x: number,
y: number,
z: number,
heading: number,
scenarioName: string
): voidtaskStandGuard(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
heading | float | number | number |
scenarioName | string | string | string |
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