# CFX::GET_NUM_PLAYER_TOKENS

- **Hash:** `0x619E4A3D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetNumPlayerTokens`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_NUM_PLAYER_TOKENS

## Signature

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

## Parameters

- `playerSrc` (`char*`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetNumPlayerTokens(playerSrc)

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
