isBulletInArea
IS_BULLET_IN_AREA0x3F2023999AD51C1FThe GTA V native IS_BULLET_IN_AREA of the MISC namespace, as LS:MP client scripts call it: the global function isBulletInArea, in JavaScript and in Lua.
isBulletInArea(
x: number,
y: number,
z: number,
radius: number,
ownedByPlayer: boolean
): booleanisBulletInArea(
x: number,
y: number,
z: number,
radius: number,
ownedByPlayer: boolean
): booleanUsage
JavaScript
const result = isBulletInArea(x, y, z, radius, ownedByPlayer);Lua
local result = isBulletInArea(x, y, z, radius, 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 = isBulletInArea(pos, radius, ownedByPlayer);Lua · with vectors
local result = isBulletInArea(pos, radius, ownedByPlayer)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
radius | float | number | number |
ownedByPlayer | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Misc MISC
- In the game
BOOL IS_BULLET_IN_AREA(float x, float y, float z, float radius, BOOL ownedByPlayer)- Hash
0x3F2023999AD51C1F