Not released yet. These pages are written from the code of
manniche_bossmenu and can change before the release.Requirements
These resources are listed as dependencies in fxmanifest.lua:
es_extended(ESX Legacy)oxmysqlox_libesx_addonaccount
Only ESX is supported. The script reads the framework with exports['es_extended']:getSharedObject(). There is no other framework detection.
Install
- Put the
manniche_bossmenufolder in your resources folder. - Import
sql/install.sql. It is safe to run more than once. - Make sure every job in
Config.Jobshas asociety_<job>row inaddon_account(and inaddon_account_datawithownerNULL). The standardesx_policejob,esx_ambulancejob,esx_mechanicjob,esx_taxijobandesx_vehicleshopSQL files create them. - Add the resource to
server.cfgafter its dependencies:
ensure es_extended
ensure oxmysql
ensure ox_lib
ensure esx_addonaccount
ensure manniche_bossmenu
SQL file
sql/install.sql creates two tables:
manniche_bossmenu_transactions: deposit and withdraw history per job (identifier, name, action, amount, balance, time).manniche_bossmenu_training: special trainings granted per player and job.
The job money itself is not stored here. It lives in esx_addonaccount.
User interface
The UI is already built in html/. You do not need to build anything to use the script. To change the UI, edit the source in web/ and run:
cd web
npm install --ignore-scripts
npm run build
First run check
- Start the server and watch the console. After about two seconds the script checks every job in
Config.Jobs. A yellow warning means a society account or job grades are missing (see Troubleshooting). - Join as a player whose job is in
Config.Jobsand whose grade is the boss grade. - Run
/bossmenu. The tablet opens and the player holds a tablet prop.
Set
Config.Debug = true to print extra messages with the prefix [manniche_bossmenu].