isAnyPedShootingInArea
IS_ANY_PED_SHOOTING_IN_AREA0xA0D3D71EA1086C55The 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.
isAnyPedShootingInArea(
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number,
p6: boolean,
p7: boolean
): booleanisAnyPedShootingInArea(
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number,
p6: boolean,
p7: boolean
): booleanUsage
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x1 | float | number | number |
y1 | float | number | number |
z1 | float | number | number |
x2 | float | number | number |
y2 | float | number | number |
z2 | float | number | number |
p6 | BOOL | boolean | boolean |
p7 | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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