# PED::IS_PED_FACING_PED

- **Hash:** `0xD71649DB0A545AA3`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsPedFacingPed`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/IS_PED_FACING_PED

## Signature

```c
BOOL IS_PED_FACING_PED(Ped ped, Ped otherPed, float angle);
```

## Parameters

- `ped` (`Ped`)
- `otherPed` (`Ped`)
- `angle` (`float`)

## Returns

`BOOL`

## Description

angle is ped's view cone

## Usage

### Lua

```lua
local retval = IsPedFacingPed(ped, otherPed, angle)

-- always available, by hash
local retval = Citizen.InvokeNative(0xD71649DB0A545AA3, ped, otherPed, angle, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPedFacingPed(ped, otherPed, angle);

// by hash
const retval = Citizen.invokeNative('0xD71649DB0A545AA3', ped, otherPed, angle + 0.0000001, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xD71649DB0A545AA3, ped, otherPed, angle);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
