# PLAYER::PLAYER_ID

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

## Signature

```c
Player PLAYER_ID();
```

## Returns

`Player`

## Description

This returns YOUR 'identity' as a Player type.

Always returns 0 in story mode.

## Usage

### Lua

```lua
local retval = PlayerId()

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

### JavaScript

```js
const retval = PlayerId();

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
