Skip to content

Integrations & Compatibility ​

QB Management is a full redesign, but it answers the same exports and events as the original qb-management (including the older qb-bossmenu and qb-gangmenu names). Existing job and gang scripts need no changes.

qb-management / qb-bossmenu / qb-gangmenu ​

Server exports ​

ExportWhat it does
GetAccount(job)Job society balance
AddMoney(job, amount)Adds money to a job
RemoveMoney(job, amount)Takes money from a job
GetGangAccount(gang)Gang balance
AddGangMoney(gang, amount)Adds money to a gang
RemoveGangMoney(gang, amount)Takes money from a gang
OpenBossMenu(playerId, jobName, close, options)Opens the boss tablet for a player
OpenGangMenu(playerId)Opens the gang tablet for a player

Older qb-core builds that pay salaries from the society account through these exports keep working. Details: Server exports.

Client exports ​

ExportWhat it does
OpenBossMenu(society, close, options)Opens the boss tablet
AddBossMenuItem(data) / RemoveBossMenuItem(id)Adds or removes your own tablet sidebar button
AddGangMenuItem(data) / RemoveGangMenuItem(id)Same, under the old gang menu names

Details: Client exports.

Events ​

Client events that open the player's own menu:

EventOpens
qb-bossmenu:client:OpenMenuBoss tablet of the player's job
qb-bossmenu:client:openMenuBoss tablet of the player's job
qb-bossmenu:client:forceMenuBoss tablet of the player's job (used by qb-taxijob)
qb-gangmenu:client:OpenMenuGang tablet of the player's gang
qb-gangmenu:client:openMenuGang tablet of the player's gang
lua
TriggerEvent('qb-bossmenu:client:OpenMenu')
TriggerEvent('qb-gangmenu:client:OpenMenu')

The server checks that the player is a boss of their job or gang before the tablet opens.

Validate your own inputs

Exports that move money trust the calling script. Never pass amounts or names that come straight from a player's NUI without checking them in your own script.

Old QBCore and New QBCore ​

  • Old QBCore keeps society money in the boss menu, in the management_funds table of the original resource. This package still uses that table as is.
  • New QBCore keeps it in a bank resource such as qb-banking.

Settings → QBCore version picks one, or Auto detect uses New QBCore when a bank with society support is running. When New QBCore is used, money left in management_funds is moved to the bank once, safely. See Configuration.

Jobs and gangs ​

Players, jobs and gangs stay in qb-core. Jobs and gangs made or changed in the tablet are added to qb-core live (AddJob, UpdateJob, RemoveJob) and kept in the database, so they come back after a restart. shared/jobs.lua and shared/gangs.lua are only read, never written. See Job source.

Online players are changed through QBCore's own functions. Offline players get a direct database update of their job or gang.

Banking ​

Society money always goes through the bank picked in Bridge → Society Banking. Every deposit and withdrawal is checked by reading the balance again.

qb-banking, Old QBCore management_funds, Renewed-Banking, wasabi_banking, sd_banking, fsg_banking, ak47_banking, qs-banking, tgg-banking, crm-banking, kartik-banking, okokBanking and fd_banking are included. To add another bank, copy bridge/banking/custom/ to bridge/banking/<resource_name>/, fill in the functions and restart qb-management.

Inventories (money wash) ​

Dirty-money items are read, taken and given through the inventory picked in Bridge → Inventory: tgiann-inventory, qs-inventory, origen_inventory, codem-inventory, ox_inventory, core_inventory, one_inventory, jpr-inventory, ps-inventory, lj-inventory and qb-inventory. Every change is checked by reading the player's total again. To add another inventory, copy bridge/inventory/custom/.

Management points (fwb_interact) ​

Management points use fwb_interact (or cr_interact, which has the same exports). The script adds no other interaction. Press E or Target is chosen in fwb_interact for every script at once. fwb_interact can also replace qb-target; see its docs.

Points are added again when the interact resource restarts. If neither resource runs, the console prints a warning.

Notify ​

Auto uses the built-in notify at the right middle of the screen. FS Notify (fs_notify), QBCore notifications and ox_lib can be picked in Bridge → Notify.

Logging ​

  • Discord: built-in webhook delivery, set in the admin Logs tab.
  • FiveManage: sent through fmsdk, which holds the API key.
  • Custom: fill in bridge/logging/custom/server.lua and make available() return true when your logger is ready.

Event hooks ​

Run your own server code after hires, fires, rank changes, deposits, withdrawals and money washes in bridge/events/server.lua. See Server exports → Event hooks.

Other frameworks ​

FwB Management is also available for ESX (esx_society) and Qbox (qbx_management). Only the copy that matches the framework runs; this package stays off on an ESX or Qbox server.

FWB Studio documentation.