IS_ANY_HOSTILE_PED_NEAR_POINT
Returns true if a ped hostile to ped is within radius of the given point.
Signature
BOOL IS_ANY_HOSTILE_PED_NEAR_POINT(Ped ped, float x, float y, float z, float radius); // 0x68772DB2B2526F9F b1311Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | radius | float |
Facts
| Name | IS_ANY_HOSTILE_PED_NEAR_POINT |
|---|---|
| Hash | 0x68772DB2B2526F9F |
| Namespace | |
| Returns | BOOL |
| Game build | 1311 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x68772DB2B2526F9F, -- IS_ANY_HOSTILE_PED_NEAR_POINT
PlayerPedId(), -- Ped ped
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0 -- float radius
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x68772DB2B2526F9F", // IS_ANY_HOSTILE_PED_NEAR_POINT
PlayerPedId(), // Ped ped
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x68772DB2B2526F9F, // IS_ANY_HOSTILE_PED_NEAR_POINT
API.PlayerPedId(), // Ped ped
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f // float radius
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.