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