The Lab
PED native

IS_PED_FACING_PED

returns BOOL3 paramsbuild 1207

Returns true if ped is facing otherPed within angle degrees.

Signature

C
BOOL IS_PED_FACING_PED(Ped ped, Ped otherPed, float angle); // 0xD71649DB0A545AA3 b1207

Parameters

#NameType
1pedPed
2otherPedPed
3anglefloat

Facts

Facts about IS_PED_FACING_PED
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.

Lua
local result = Citizen.InvokeNative(0xD71649DB0A545AA3, -- IS_PED_FACING_PED
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Ped otherPed
  0.0 -- float angle
)
if result then
  -- ...
end
JavaScript
// 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) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xD71649DB0A545AA3, // IS_PED_FACING_PED
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Ped otherPed
  0.0f // float angle
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.