isBulletInBox
IS_BULLET_IN_BOX0xDE0F6D7450D37351The GTA V native IS_BULLET_IN_BOX of the MISC namespace, as LS:MP client scripts call it: the global function isBulletInBox, in JavaScript and in Lua.
isBulletInBox(
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number,
ownedByPlayer: boolean
): booleanisBulletInBox(
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number,
ownedByPlayer: boolean
): booleanUsage
JavaScript
const result = isBulletInBox(x1, y1, z1, x2, y2, z2, ownedByPlayer);Lua
local result = isBulletInBox(x1, y1, z1, x2, y2, z2, ownedByPlayer)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 = isBulletInBox(pos1, pos2, ownedByPlayer);Lua · with vectors
local result = isBulletInBox(pos1, pos2, ownedByPlayer)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 |
ownedByPlayer | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Misc MISC
- In the game
BOOL IS_BULLET_IN_BOX(float x1, float y1, float z1, float x2, float y2, float z2, BOOL ownedByPlayer)- Hash
0xDE0F6D7450D37351