Integrations & Compatibility
Moving from the original qbx_management
Scripts written for the original qbx_management keep working.
| Original feature | In 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 / RemoveBossMenuItem | Extra buttons in the tablet sidebar |
AddGangMenuItem / RemoveGangMenuItem | Extra buttons in the tablet sidebar |
qb-bossmenu:client:OpenMenu, qb-gangmenu:client:OpenMenu | Open the job or gang tablet |
Groups saved in management_groups | Imported once, the first time this resource has no saved groups |
Boss menu spots in config/server.lua | Copy 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'sCreateJobs/CreateGangsand removed withRemoveJob/RemoveGang, in memory, at every start. They are stored inqbx_management_jobs(gangs asgang:<name>).qbx_coresends the changes to all players itself. qbx_core/shared/jobs.luaandgangs.luaare never written. See Job source.- Membership uses
AddPlayerToJob,RemovePlayerFromJob,SetPlayerPrimaryJoband the gang versions;qbx_coresaves online and offline players. - Players can hold several jobs and gangs (
qbx:max_jobs_per_player). Member lists come from theplayer_groupstable, so a member shows in every job they hold. Firing removes the player from that job;qbx_coremoves a primary member tounemployed/none. - Boss access comes from the rank's
isbossflag. - Keep
qbx:cleanPlayerGroupsoff (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.
| Bank | Resource | Auto priority | Jobs only |
|---|---|---|---|
| Renewed-Banking (Qbox default) | Renewed-Banking | 20 | — |
| Wasabi Banking | wasabi_banking | 21 | Yes |
| SD Banking | sd_banking | 22 | Yes |
| FSG Banking | fsg_banking | 23 | Yes |
| AK47 Banking | ak47_banking | 24 | Yes |
| qs-banking | qs-banking or qs_banking | 25 | — |
| TGG Banking | tgg-banking | 26 | — |
| CRM Banking | crm-banking | 27 | Yes |
| Kartik Banking | kartik-banking | 28 | Yes |
| okokBanking | okokBanking | 30 | — |
| fd_banking | fd_banking | 40 | — |
| Custom | your resource | 500 | — |
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:
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).
| Inventory | Auto priority |
|---|---|
tgiann-inventory | 5 |
qs-inventory | 6 |
origen_inventory | 7 |
codem-inventory | 8 |
ox_inventory (Qbox default) | 10 |
| Custom | 500 |
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:
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
| Choice | Notes |
|---|---|
| Built-in (default) | The resource's own notifications at the right middle of the screen |
| FS Notify | Needs fs_notify |
| Qbox notifications | qbx_core's notify |
| ox_lib | Needs 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.luaand makeavailable()returntruewhen your logger is ready.
Player IP identifiers, IP fields and IP-shaped values are removed before any provider gets a log entry.
