# Levels

File: `shared/config.lua` → `Config.Levels`

Controls the leveling progression for the gardener job.

## Fields

| Key          | Type     | Default | Description                 |
| ------------ | -------- | ------- | --------------------------- |
| `maxLevel`   | `number` | `100`   | Maximum achievable level.   |
| `xpForLevel` | `number` | `1000`  | Base XP required per level. |

## How it works

The XP needed to level up scales linearly:

$$
\text{XP required} = \text{currentLevel} \times \texttt{xpForLevel}
$$

For example, at level 5 with the default value of `1000`:

* XP to reach level 6 = `5 × 1000 = 5000`

When a player reaches `maxLevel`, their XP is capped and no further leveling occurs.

Each level-up grants **1 skill point** automatically.

## Example

```lua title="shared/config.lua"
Config.Levels = {
    maxLevel = 100,
    xpForLevel = 1000,
}
```

## Related pages

- [Company](/jobs/lawnmower/configuration/company) — Defines the gardener company — its name, NPC, map blip, job requirement, parking spots, vehicles, and equipment offsets.
- [Database](/jobs/lawnmower/configuration/database) — File: shared/config.lua → Config.Database
- [Locale & Debug](/jobs/lawnmower/configuration/locale-and-debug) — Key Type Default Description ------- --------- ------- ------------------------------------------------------------------- Debug boolean true Enables debug mode.
- [Missions](/jobs/lawnmower/configuration/missions) — File: shared/config.lua → Config.Missions
- [Skills](/jobs/lawnmower/configuration/skills) — Defines the entire skill tree displayed in the Upgrades panel.
- [Uniforms](/jobs/lawnmower/configuration/uniforms) — File: shared/config.lua → Config.Uniforms
- [Configuration](/jobs/lawnmower/configuration) — back to the section overview
