IS_PED_FACING_PED
Returns true if ped is facing otherPed within angle degrees.
Signature
BOOL IS_PED_FACING_PED(Ped ped, Ped otherPed, float angle); // 0xD71649DB0A545AA3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | otherPed | Ped |
| 3 | angle | float |
Facts
| Name | IS_PED_FACING_PED |
|---|---|
| Hash | 0xD71649DB0A545AA3 |
| 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(0xD71649DB0A545AA3, -- IS_PED_FACING_PED
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Ped otherPed
0.0 -- float angle
)
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("0xD71649DB0A545AA3", // IS_PED_FACING_PED
PlayerPedId(), // Ped ped
PlayerPedId(), // Ped otherPed
0.0, // float angle
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD71649DB0A545AA3, // IS_PED_FACING_PED
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Ped otherPed
0.0f // float angle
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.