# CFX::GET_PLAYER_PING

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

## Signature

```c
int GET_PLAYER_PING(char* playerSrc);
```

## Parameters

- `playerSrc` (`char*`)

## Returns

`int` — Returns the mean amount of time a packet takes to get to the client

## Description

*Source: Cfx.re native reference*

See [GET_PLAYER_PEER_STATISTICS](#\_0x9A928294) if you want more detailed information, like packet loss, and packet/rtt variance

## Usage

### Lua

```lua
local retval = GetPlayerPing(playerSrc)

-- always available, by hash
local retval = Citizen.InvokeNative(0xff1290d4, playerSrc, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPlayerPing(playerSrc);

// by hash
const retval = Citizen.invokeNative('0xff1290d4', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xff1290d4, playerSrc);
```

*Sources: Cfx.re native reference.*
