# PED::CAN_PED_SEE_PED_CACHED

- **Hash:** `0x9D9473CB82D83A30`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `CanPedSeePedCached`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/CAN_PED_SEE_PED_CACHED

## Signature

```c
int CAN_PED_SEE_PED_CACHED(Ped ped, Ped targetPed, BOOL p2);
```

## Parameters

- `ped` (`Ped`)
- `targetPed` (`Ped`)
- `p2` (`BOOL`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = CanPedSeePedCached(ped, targetPed, p2)

-- always available, by hash
local retval = Citizen.InvokeNative(0x9D9473CB82D83A30, ped, targetPed, p2, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = CanPedSeePedCached(ped, targetPed, p2);

// by hash
const retval = Citizen.invokeNative('0x9D9473CB82D83A30', ped, targetPed, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x9D9473CB82D83A30, ped, targetPed, p2);
```

*Sources: alloc8or RDR3 NativeDB.*
