# CFX::GET_PLAYER_FROM_INDEX

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

## Signature

```c
char* GET_PLAYER_FROM_INDEX(int index);
```

## Parameters

- `index` (`int`)

## Returns

`char*`

## Usage

### Lua

```lua
local retval = GetPlayerFromIndex(index)

-- always available, by hash
local retval = Citizen.InvokeNative(0xc8a9ce08, index, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetPlayerFromIndex(index);

// by hash
const retval = Citizen.invokeNative('0xc8a9ce08', index, Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0xc8a9ce08, index);
```

*Sources: Cfx.re native reference.*
