# XP System



* If enabled players can earn XP from various tasks
* XP levels can determine the reward amounts&#x20;
* You can define the chance value for players to earn XP
* You can define the minimum and maximum amounts of XP that can be rewarded
* You can define the XP level and its respective amount required to reach

***

```lua
XP = { -- define xp settings if enabled
    Enabled = true, -- enable xp system (make sure to import sql file if enabled)
    XPGain = { -- amount of xp earnt from mining rocks
        Min = 3, -- min amount
        Max = 6, -- max amount
    },
    XPLevels = { -- set XP levels and their respective amounts
        [1] = 250,
        [2] = 500,
        [3] = 750,
        [4] = 1000,
        [5] = 1250,
        [6] = 1500,
        [7] = 2500,
        [8] = 5000,
        [9] = 7500,
        [10] = 10000,
        --add more levels as required following the index number for the next level
    },
},
```
