# PLAYER::GET_MAX_WANTED_LEVEL

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

## Signature

```c
int GET_MAX_WANTED_LEVEL();
```

## Returns

`int`

## Description

Gets the maximum wanted level the player can get.
Ranges from 0 to 5.

## Usage

### Lua

```lua
local retval = GetMaxWantedLevel()

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

### JavaScript

```js
const retval = GetMaxWantedLevel();

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

### C#

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

## See also

- [PLAYER::SET_MAX_WANTED_LEVEL](https://natives.borderlinerp.com/natives/PLAYER/SET_MAX_WANTED_LEVEL.md)

*Sources: alloc8or RDR3 NativeDB.*
