This BattlePass is a leveling and XP system for FiveM ESX servers, modelled on the GTA Online tier system and shown with NativeUI. All players start with 0 XP, earn XP for actions you choose, level up and receive rewards such as money, weapons or items.
Note: the script does not include missions. You add the XP event yourself on the server side wherever players should earn XP, and you set up the rewards and levels you want. A default set of levels is included as an example.
Features
- Earn rewards by leveling up: money (cash, bank or black money), items, or weapons with ammo
- Several rewards per level and your own number of levels and XP steps
- XP can also be removed, for example as a punishment, with its own bar colours
- Players check their own level and the full BattlePass: total levels, current level, progress, required XP, time remaining and rewards per level
- Reset the BattlePass XP on a specific date
- Configurable bar and circle colours
Commands
/bplvl– show your own level (also on the I key, changeable)/mybp– show all BattlePass information (also on the O key, changeable)
Requirements
- Database Manager: mysql-async or ghmattimysql
- ESX 1.1, ESX 1.2 or EXM
- NativeUI (NativeUILua_Reloaded)
- Cron
Installation
- Put the files into a resource folder, for example
battlepass, and addensure battlepassto your server.cfg. - Import
sql.sql(adds anxpcolumn tousers). - Set your levels, rewards, reset date and database driver in
config.lua.