# PLAYER::SET_MAX_WANTED_LEVEL

- **Hash:** `0x28A4BD2CEE236E19`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `SetMaxWantedLevel`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/SET_MAX_WANTED_LEVEL

## Signature

```c
void SET_MAX_WANTED_LEVEL(int maxWantedLevel);
```

## Parameters

- `maxWantedLevel` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
SetMaxWantedLevel(maxWantedLevel)

-- always available, by hash
Citizen.InvokeNative(0x28A4BD2CEE236E19, maxWantedLevel)
```

### JavaScript

```js
SetMaxWantedLevel(maxWantedLevel);

// by hash
Citizen.invokeNative('0x28A4BD2CEE236E19', maxWantedLevel);
```

### C#

```csharp
Function.Call((Hash)0x28A4BD2CEE236E19, maxWantedLevel);
```

## See also

- [PLAYER::GET_MAX_WANTED_LEVEL](https://natives.borderlinerp.com/natives/PLAYER/GET_MAX_WANTED_LEVEL.md) — Gets the maximum wanted level the player can get.

*Sources: alloc8or RDR3 NativeDB.*
