# PLAYER::INT_TO_PLAYERINDEX

- **Hash:** `0x748B3A65C2604C33`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `IntToPlayerindex`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/INT_TO_PLAYERINDEX

## Signature

```c
Player INT_TO_PLAYERINDEX(int value);
```

## Parameters

- `value` (`int`)

## Returns

`Player`

## Description

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

## Usage

### Lua

```lua
local retval = IntToPlayerindex(value)

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

### JavaScript

```js
const retval = IntToPlayerindex(value);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
