Skip to content

Integrations & Compatibility ​

Moving from the original qbx_management ​

Scripts written for the original qbx_management keep working.

Original featureIn this resource
RegisterBossMenu (server)Runtime spots become management points for that group's bosses, through fwb_interact. They disappear when the resource that added them stops. See Server exports
OpenBossMenu('job' | 'gang') (client)Opens the job or gang tablet. See Client exports
AddBossMenuItem / RemoveBossMenuItemExtra buttons in the tablet sidebar
AddGangMenuItem / RemoveGangMenuItemExtra buttons in the tablet sidebar
qb-bossmenu:client:OpenMenu, qb-gangmenu:client:OpenMenuOpen the job or gang tablet
Groups saved in management_groupsImported once, the first time this resource has no saved groups
Boss menu spots in config/server.luaCopy the file to old_config/server.lua: the spots become management points for the boss ranks. See Old boss menu spots

Other exports of this resource: OpenBossMenu(playerId, jobName, close, options) and OpenGangMenu(playerId) on the server.

qbx_core ​

  • Jobs and gangs made or changed in the tablet are added with qbx_core's CreateJobs / CreateGangs and removed with RemoveJob / RemoveGang, in memory, at every start. They are stored in qbx_management_jobs (gangs as gang:<name>). qbx_core sends the changes to all players itself.
  • qbx_core/shared/jobs.lua and gangs.lua are never written. See Job source.
  • Membership uses AddPlayerToJob, RemovePlayerFromJob, SetPlayerPrimaryJob and the gang versions; qbx_core saves online and offline players.
  • Players can hold several jobs and gangs (qbx:max_jobs_per_player). Member lists come from the player_groups table, so a member shows in every job they hold. Firing removes the player from that job; qbx_core moves a primary member to unemployed / none.
  • Boss access comes from the rank's isboss flag.
  • Keep qbx:cleanPlayerGroups off (the default), or members of tablet-made jobs are removed at every start.

Interaction ​

Management points use fwb_interact (free). cr_interact works too; when both run, fwb_interact is used. Press E or Target is chosen in fwb_interact, for every script at once.

  • Every point is added again when fwb_interact restarts, and when the language or settings change.
  • When neither is running, the client console prints: fwb_interact is not running: management points cannot be used.

Banking ​

Society money for jobs and gangs always goes through the bank picked in Bridge > Society Banking. Auto picks the first running one by priority. If the picked bank is installed but stopped, money actions are blocked instead of switching to another bank. Every deposit and withdrawal is checked by reading the balance again.

BankResourceAuto priorityJobs only
Renewed-Banking (Qbox default)Renewed-Banking20—
Wasabi Bankingwasabi_banking21Yes
SD Bankingsd_banking22Yes
FSG Bankingfsg_banking23Yes
AK47 Bankingak47_banking24Yes
qs-bankingqs-banking or qs_banking25—
TGG Bankingtgg-banking26—
CRM Bankingcrm-banking27Yes
Kartik Bankingkartik-banking28Yes
okokBankingokokBanking30—
fd_bankingfd_banking40—
Customyour resource500—

Gang money

Banks marked "Jobs only" document no gang accounts, so the bridge does not use them for gangs. With one of them, gang money (deposit, withdraw, wash payouts) is not available.

Add a bank ​

Copy bridge/banking/custom/ to bridge/banking/<resource_name>/ and fill in the functions:

lua
M.bankingProviders['my-banking'] = {
    label = 'My Banking',           -- shown in the Bridge tab
    resource = 'my-banking',        -- resource name (string or list)
    priority = 50,                  -- lower runs first in Auto mode
    detect = function() return GetResourceState('my-banking') == 'started' end,
    accountName = function(name, kind) return name end,     -- optional: job/gang -> account id
    ensure = function(account, kind, label) return true end, -- optional: create a missing account
    balance = function(account, kind) return 0 end,          -- number, or nil when missing
    add = function(account, amount, reason, kind) return true end,
    remove = function(account, amount, reason, kind) return true end,
}

kind is 'job' or 'gang'. add and remove must return true only when the money really moved. Restart the resource afterwards.

Inventory ​

The money wash reads, takes and gives dirty-money items through the inventory picked in Bridge > Inventory (Auto finds the running one).

InventoryAuto priority
tgiann-inventory5
qs-inventory6
origen_inventory7
codem-inventory8
ox_inventory (Qbox default)10
Custom500

Every add or remove is checked by reading the player's total again. With the dirty money type Money type (account), no item is used; add that money type (for example black_money) to qbx_core's config first.

Add an inventory ​

Copy bridge/inventory/custom/ to bridge/inventory/<resource_name>/ and fill in:

lua
M.inventoryProviders['my_inventory'] = {
    label = 'my_inventory',
    resource = 'my_inventory',
    priority = 15,                                        -- lower is checked first
    detect = function() return M.Inventory.started('my_inventory') end,
    items = function(source) return {} end,               -- list of { name, count, metadata, slot }
    add = function(source, item, count, metadata, reason) return true end,
    remove = function(source, item, count, slot, metadata, reason) return true end,
}

Notifications ​

ChoiceNotes
Built-in (default)The resource's own notifications at the right middle of the screen
FS NotifyNeeds fs_notify
Qbox notificationsqbx_core's notify
ox_libNeeds ox_lib

Logging ​

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

Player IP identifiers, IP fields and IP-shaped values are removed before any provider gets a log entry.

FWB Studio documentation.