# PLAYER::NETWORK_PLAYER_ID_TO_INT

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

## Signature

```c
int NETWORK_PLAYER_ID_TO_INT();
```

## Returns

`int`

## Description

Does exactly the same thing as PLAYER_ID()

## Usage

### Lua

```lua
local retval = NetworkPlayerIdToInt()

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

### JavaScript

```js
const retval = NetworkPlayerIdToInt();

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0x8A9386F0749A17FA);
```

*Sources: alloc8or RDR3 NativeDB.*
