isAnyHostilePedNearPoint
IS_ANY_HOSTILE_PED_NEAR_POINT0x68772DB2B2526F9FThe GTA V native IS_ANY_HOSTILE_PED_NEAR_POINT of the PED namespace, as LS:MP client scripts call it: the global function isAnyHostilePedNearPoint, in JavaScript and in Lua.
isAnyHostilePedNearPoint(
ped: Ped,
x: number,
y: number,
z: number,
radius: number
): booleanisAnyHostilePedNearPoint(
ped: Ped,
x: number,
y: number,
z: number,
radius: number
): booleanUsage
JavaScript
const result = isAnyHostilePedNearPoint(ped, x, y, z, radius);Lua
local result = isAnyHostilePedNearPoint(ped, 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 = isAnyHostilePedNearPoint(ped, pos, radius);Lua · with vectors
local result = isAnyHostilePedNearPoint(ped, pos, radius)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
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_HOSTILE_PED_NEAR_POINT(Ped ped, float x, float y, float z, float radius)- Hash
0x68772DB2B2526F9F