VehicleClient

isAnyVehicleNearPoint

IS_ANY_VEHICLE_NEAR_POINT0x61E1DD6125A3EEE6

The 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.

SignatureJavaScript
isAnyVehicleNearPoint(
  x: number,
  y: number,
  z: number,
  radius: number
): boolean
SignatureLua
isAnyVehicleNearPoint(
  x: number,
  y: number,
  z: number,
  radius: number
): boolean

Usage

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

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_ANY_VEHICLE_NEAR_POINT(float x, float y, float z, float radius)
Hash
0x61E1DD6125A3EEE6

Open in the interactive natives reference