PedClient

doesScenarioBlockingAreaExists

DOES_SCENARIO_BLOCKING_AREA_EXISTS0x8A24B067D175A7BD

The GTA V native DOES_SCENARIO_BLOCKING_AREA_EXISTS of the PED namespace, as LS:MP client scripts call it: the global function doesScenarioBlockingAreaExists, in JavaScript and in Lua.

SignatureJavaScript
doesScenarioBlockingAreaExists(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number
): boolean
SignatureLua
doesScenarioBlockingAreaExists(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number
): boolean

Usage

JavaScript
const result = doesScenarioBlockingAreaExists(x1, y1, z1, x2, y2, z2);
Lua
local result = doesScenarioBlockingAreaExists(x1, y1, z1, x2, y2, z2)

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 = doesScenarioBlockingAreaExists(pos1, pos2);
Lua · with vectors
local result = doesScenarioBlockingAreaExists(pos1, pos2)

Parameters

ParameterTypeJavaScriptLua
x1floatnumbernumber
y1floatnumbernumber
z1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber
z2floatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL DOES_SCENARIO_BLOCKING_AREA_EXISTS(float x1, float y1, float z1, float x2, float y2, float z2)
Hash
0x8A24B067D175A7BD
Introduced
Game build 678 legacy numbering
Formerly
_DOES_SCENARIO_BLOCKING_AREA_EXIST

Open in the interactive natives reference