# CFX::IS_PED_A_PLAYER

- **Hash:** `0x404794CA`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `IsPedAPlayer`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/IS_PED_A_PLAYER

## Signature

```c
BOOL IS_PED_A_PLAYER(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`BOOL` — Returns `true` if the ped is a player, `false` otherwise.

## Description

*Source: Cfx.re native reference*

This native checks if the given ped is a player.

## Usage

### Lua

```lua
local retval = IsPedAPlayer(ped)

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

### JavaScript

```js
const retval = IsPedAPlayer(ped);

// by hash
const retval = Citizen.invokeNative('0x404794ca', ped, Citizen.returnResultAnyway());
```

### C#

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

*Sources: Cfx.re native reference.*
