_IS_PED_IN_POINT
Returns true if ped is within radius of the point (x, y, z).
Signature
BOOL _IS_PED_IN_POINT(Ped ped, float x, float y, float z, float radius, BOOL p5); // 0x078076AB50FB117F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | radius | float |
| 6 | p5 | BOOL |
Facts
| Name | _IS_PED_IN_POINT |
|---|---|
| Hash | 0x078076AB50FB117F |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x078076AB50FB117F, -- _IS_PED_IN_POINT
PlayerPedId(), -- Ped ped
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
false -- BOOL p5
)
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("0x078076AB50FB117F", // _IS_PED_IN_POINT
PlayerPedId(), // Ped ped
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
false, // BOOL p5
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x078076AB50FB117F, // _IS_PED_IN_POINT
API.PlayerPedId(), // Ped ped
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
false // BOOL p5
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.