Smoke Bunker

Smoke Bunker integrations

Supported frameworks, inventories, targets, clothing, dispatch and logging, and the file for each bridge.

The Lua files under bridge are open to edit. Framework and inventory bridges check at load whether their resource is running, so start both before smoke_bunker.

Frameworks#

FrameworkResourceStatusWhat to know
ESXes_extendedSupportedMembers saved by xPlayer identifier. No gangs: gangMode.esxGangJobs lists the jobs that count as gangs.
QBCoreqb-coreSupportedUsed only when qbx_core is not running. Members saved by citizenid.
Qboxqbx_coreSupportedWins over qb-core. Members saved by citizenid.
ox_coreox_coreSupportedMembers saved by charId. Jobs and gangs are both character groups. Payments use the character's account, whatever buyer.account says. No usable-item registry: placeable items rely on the server.export entry of their item definition.

Buying or selling a bunker and depositing or withdrawing org funds use the player's bank account; the dealer terminal charges buyer.account. Admin check per framework: Commands.

Inventories#

InventoryResourceStatusItem name table
ox_inventoryox_inventorySupportedconfig.itemNames.ox
jaksam_inventoryjaksam_inventorySupportedconfig.itemNames.jaksam
qb-inventoryqb-inventorySupported, v2config.itemNames.qb
ps-inventoryps-inventorySupportedconfig.itemNames.qb
codem-inventorycodem-inventoryLimitedconfig.itemNames.qb
codem-inventoryv2codem-inventoryv2Supportedconfig.itemNames.codemv2
one_inventoryone_inventorySupportedconfig.itemNames.one
wasabi_inventorywasabi_inventorySupportedconfig.itemNames.wasabi
tgiann-inventorytgiann-inventorySupportedconfig.itemNames.tgiann

codem-inventory has no stash add or take export, so the bridge rewrites the whole stash on each change. A change made while a player has the stash open can be lost when they close it.

Run one inventory. If several run, wasabi_inventory wins, then codem-inventory and codem-inventoryv2, which beat every bridge except one_inventory. jaksam_inventory and one_inventory beat ox_inventory and qb-inventory. With both CodeM resources running, inventory support is off: see the FAQ.

Item files: Install. Item names: Configure.

Targets and prompts#

interact in config/client/config.lua sets how players use interact points.

ValueResourceWhat it does
'ox_target'ox_targetSphere zone for each interact point.
'qb-target'qb-targetCircle zone for each interact point.
'textui'None[E] <label> prompt through the text UI.
'auto'ox_target, qb-target or noneox_target if running, then qb-target, then the text prompt.

textUI in the same file sets the text UI for the text prompt and the cutscene skip.

ValueResourceCall
'auto' or 'ox_lib'ox_liblib.showTextUI
'qb'qb-coreDrawText export
'okok'okokTextUIOpen export
'jg'jg-textuiDrawText export

Clothing#

clothing in config/client/config.lua picks the resource whose outfit menu the Personal Quarters wardrobe opens.

ValueResourceWhat it opens
'illenium-appearance'illenium-appearanceIts outfit menu.
'fivem-appearance'fivem-appearanceComponents and props only. Saves through the original example's event: forks may save differently.
'qb-clothing'qb-clothingIts outfit menu.
'esx_skin'esx_skinIts saveable menu.
'auto'First of these that is runningChecked in table order.

Dispatch#

Police alerts go to online players whose job is in dispatch.jobs, as a notification and a flashing blip lasting dispatch.blipSeconds. With cd_dispatch running, the same jobs also get the alert through its cd_dispatch:AddNotification event. dispatch.enabled turns alerts on or off. dispatch.onRaidBreach alerts when raiders hack or plant C4 on a bunker keypad, dispatch.onHighRiskMission when a high-risk mission first shows on the map. For another dispatch script, edit bridge/dispatch/server.lua.

Logging#

Set logger in config/server/config.lua. Logging is off until logger.enabled is true; logger.type picks where log lines go.

logger.typeWhat it does
'discord'Posts each log line to a Discord webhook as an embed.
'ox'Writes each log line through the ox_lib logger, as smoke_bunker:<category>.

For 'discord', set logger.discordWebhook. logger.webhooks sends a category, such as RAID, to its own webhook; a blank entry falls back to webhooks.default, then discordWebhook.

Notifications and dialogs#

Notifications use lib.notify and input dialogs lib.inputDialog, both from ox_lib. Their files are in the table below.

Where each bridge lives#

Folder or fileCovers
bridge/framework/esx, ox, qb, qbxFrameworks.
bridge/inventory/codem, codemv2, jaksam, one, ox, ps, qb, tgiann, wasabiInventories.
bridge/interact/interact.luaTarget or text prompt.
bridge/textUI/client.luaText UI.
bridge/clothing/client.luaWardrobe and outfit save.
bridge/dispatch/client.lua and server.luaPolice alerts.
bridge/notify/client.lua and server.luaNotifications.
bridge/inputDialog/client.luaInput dialogs.
bridge/logger/logger.luaDiscord and ox_lib logging.
bridge/listeners/server.luaServer events for your own code: Events.

Check which bridge was picked#

Set debugPrints = true in config/shared/config.lua and restart the resource. The console prints the picked framework and inventory:

[smoke_bunker:S:bridge] framework selected: Qbox
[smoke_bunker:S:bridge] inventory selected: ox

Set debugPrints back to false afterwards.