isExplosionInArea
IS_EXPLOSION_IN_AREA0x2E2EBA0EE7CED0E0The GTA V native IS_EXPLOSION_IN_AREA of the FIRE namespace, as LS:MP client scripts call it: the global function isExplosionInArea, in JavaScript and in Lua.
isExplosionInArea(
explosionType: number,
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number
): booleanisExplosionInArea(
explosionType: integer,
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number
): booleanUsage
JavaScript
const result = isExplosionInArea(explosionType, x1, y1, z1, x2, y2, z2);Lua
local result = isExplosionInArea(explosionType, 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 = isExplosionInArea(explosionType, pos1, pos2);Lua · with vectors
local result = isExplosionInArea(explosionType, pos1, pos2)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
explosionType | int | number | integer | See addExplosion. |
x1 | float | number | number | |
y1 | float | number | number | |
z1 | float | number | number | |
x2 | float | number | number | |
y2 | float | number | number | |
z2 | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Fire FIRE
- In the game
BOOL IS_EXPLOSION_IN_AREA(int explosionType, float x1, float y1, float z1, float x2, float y2, float z2)- Hash
0x2E2EBA0EE7CED0E0