PedClient

isAnyPedShootingInArea

IS_ANY_PED_SHOOTING_IN_AREA0xA0D3D71EA1086C55

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

SignatureJavaScript
isAnyPedShootingInArea(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  p6: boolean,
  p7: boolean
): boolean
SignatureLua
isAnyPedShootingInArea(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  p6: boolean,
  p7: boolean
): boolean

Usage

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

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

Parameters

ParameterTypeJavaScriptLua
x1floatnumbernumber
y1floatnumbernumber
z1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber
z2floatnumbernumber
p6BOOLbooleanboolean
p7BOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_ANY_PED_SHOOTING_IN_AREA(float x1, float y1, float z1, float x2, float y2, float z2, BOOL p6, BOOL p7)
Hash
0xA0D3D71EA1086C55

Open in the interactive natives reference