isAnyObjectNearPoint
IS_ANY_OBJECT_NEAR_POINT0x397DC58FF00298D1The GTA V native IS_ANY_OBJECT_NEAR_POINT of the OBJECT namespace, as LS:MP client scripts call it: the global function isAnyObjectNearPoint, in JavaScript and in Lua.
isAnyObjectNearPoint(
x: number,
y: number,
z: number,
range: number,
p4: boolean
): booleanisAnyObjectNearPoint(
x: number,
y: number,
z: number,
range: number,
p4: boolean
): booleanUsage
JavaScript
const result = isAnyObjectNearPoint(x, y, z, range, p4);Lua
local result = isAnyObjectNearPoint(x, y, z, range, p4)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 = isAnyObjectNearPoint(pos, range, p4);Lua · with vectors
local result = isAnyObjectNearPoint(pos, range, p4)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
range | float | number | number |
p4 | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Object OBJECT
- In the game
BOOL IS_ANY_OBJECT_NEAR_POINT(float x, float y, float z, float range, BOOL p4)- Hash
0x397DC58FF00298D1