isAnyPedNearPoint
IS_ANY_PED_NEAR_POINT0x083961498679DC9FThe GTA V native IS_ANY_PED_NEAR_POINT of the PED namespace, as LS:MP client scripts call it: the global function isAnyPedNearPoint, in JavaScript and in Lua.
isAnyPedNearPoint(x: number, y: number, z: number, radius: number): booleanisAnyPedNearPoint(x: number, y: number, z: number, radius: number): booleanUsage
JavaScript
const result = isAnyPedNearPoint(x, y, z, radius);Lua
local result = isAnyPedNearPoint(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 = isAnyPedNearPoint(pos, radius);Lua · with vectors
local result = isAnyPedNearPoint(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
- Ped PED
- In the game
BOOL IS_ANY_PED_NEAR_POINT(float x, float y, float z, float radius)- Hash
0x083961498679DC9F