doesScenarioExistInArea
DOES_SCENARIO_EXIST_IN_AREA0x5A59271FFADD33C1The GTA V native DOES_SCENARIO_EXIST_IN_AREA of the TASK namespace, as LS:MP client scripts call it: the global function doesScenarioExistInArea, in JavaScript and in Lua.
doesScenarioExistInArea(
x: number,
y: number,
z: number,
radius: number,
mustBeFree: boolean
): booleandoesScenarioExistInArea(
x: number,
y: number,
z: number,
radius: number,
mustBeFree: boolean
): booleanUsage
JavaScript
const result = doesScenarioExistInArea(x, y, z, radius, mustBeFree);Lua
local result = doesScenarioExistInArea(x, y, z, radius, mustBeFree)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
const result = doesScenarioExistInArea(pos, radius, mustBeFree);Lua · with vectors
local result = doesScenarioExistInArea(pos, radius, mustBeFree)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
radius | float | number | number |
mustBeFree | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Tasks TASK
- In the game
BOOL DOES_SCENARIO_EXIST_IN_AREA(float x, float y, float z, float radius, BOOL mustBeFree)- Hash
0x5A59271FFADD33C1