# CFX::GET_PLAYER_IDENTIFIER

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

## Signature

```c
char* GET_PLAYER_IDENTIFIER(char* playerSrc, int identiferIndex);
```

## Parameters

- `playerSrc` (`char*`)
- `identiferIndex` (`int`)

## Returns

`char*` — Returns the identifier at the specific index, if out of bounds returns `null`

## Description

*Source: Cfx.re native reference*

To get the number of identifiers, use [GET_NUM_PLAYER_IDENTIFIERS](#\_0xFF7F66AB)

To get a specific type of identifier, use [GET_PLAYER_IDENTIFIER_BY_TYPE](#\_0xA61C8FC6)

## Usage

### Lua

```lua
local retval = GetPlayerIdentifier(playerSrc, identiferIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7302dbcf, playerSrc, identiferIndex, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetPlayerIdentifier(playerSrc, identiferIndex);

// by hash
const retval = Citizen.invokeNative('0x7302dbcf', playerSrc, identiferIndex, Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0x7302dbcf, playerSrc, identiferIndex);
```

*Sources: Cfx.re native reference.*
