Bablo ResourcesDocs

Installation

Get the Boss Menu running in a few steps. The database is created automatically — no SQL import needed.

Download asset

To download the asset, you must have purchased it on your own CFX account. Otherwise, use the transfer system to move it to a different account.

After purchasing from our website, the asset is delivered to your CFX Portal. Download it there, then continue below.

Setup CFG

Your framework (es_extended / qb-core / qbx_core) must be started before bablo-bossmenu, or it won’t be detected. The framework check runs once at startup — there is no late detection.

Start your framework first, then the dependencies, then bablo-bossmenu:

LUA
-- Cores first, never below
ensure es_extended or qb-core or qbx_core
ensure oxmysql
ensure ox_lib
ensure ox_target or qb-target
 
-- Your inventory & society resources (any supported one)
ensure ox_inventory or qb-inventory
ensure bablo-banking or qb-management or esx_addonaccount
 
-- Then bablo-bossmenu
ensure bablo-bossmenu

bablo-bossmenu must be ensured in your server.cfg, not started by hand after boot. Jobs and grades created in the Boss Creator are stored in the database and re-registered into the framework every time the resource starts — if it isn’t running when players log in, the framework won’t recognize those jobs and will reset affected players to unemployed.

Database

Nothing to import. On first start the resource creates its own tables automatically:

bablo_bossmenus, bablo_bossmenu_revenue, bablo_bossmenu_attendance, bablo_bossmenu_transactions, bablo_bossmenu_orders, bablo_bossmenu_hours

Old statistics are also cleaned up automatically — retention is configurable in shared/settings.lua (see Configuration).

Salary system

By default the resource pays salaries itself (Settings.SalarySystem.enabled = true), so bosses can set custom per-grade salaries in-game. To avoid employees being paid twice, disable your framework’s own paycheck:

In qb-core/server/player.lua, comment out the paycheck starter:

LUA
-- PaycheckInterval() -- disabled: bablo-bossmenu pays salaries

If you’d rather keep your framework’s paycheck, set Settings.SalarySystem.enabled = false — the “Set Salary” action is hidden and grade salaries set in the creator are still written into the job data for the framework paycheck to use.

Creating your first job

  1. Join the server as an admin (admin or superadmin group by default — see shared/creator.lua) and run:

    PLAINTEXT
    /bosscreator
  2. Click Create New Job and enter a job identifier (e.g. police). If the job already exists in your framework, its label and grades are imported automatically; otherwise the creator registers it for you.

  3. Configure grades and salaries in the Grades & Salary tab, then place at least a Boss Menu location (and a Stash if you want the job store).

  4. Give the first boss their job with your framework’s own command — the boss menu can only hire players once someone in the job has hire permissions:

    PLAINTEXT
    /setjob [id] [job] [grade]
  5. That boss can now open the placed boss menu location and hire everyone else in-game.

The highest grade of every job automatically has full access to all boss menu features — you never need to configure permissions for the boss rank.