Smoke Bunker

Smoke Bunker commands

Every Smoke Bunker command and key, who can use each one and how your framework decides who is an admin.

Default command names. Each can be renamed in the config except /bunkermission.

Commands#

CommandWhoWhat it does
/crewPlayersOpens the crew panel: form a crew, invite org members, join your org's crew. Only bunker org members can form one. Rename: group.command.
/taskhudPlayersDrag the crew task list to a new spot; Enter or Esc finishes. Rename: group.hudCommand.
/bunkeradminAdmins and the server consoleLists, edits and removes bunkers and sites (subcommands below). Rename: commands.admin in config/server/config.lua.
/bunkermissionAdmins. The server console can use list and abort.Lists and aborts world missions, previews mission points and cutscenes.
/bunkercoordsAdminsCopies your position as a vec4. Near a bunker it also shows your position in the reference interior, the coordinates the interior config uses. Rename: commands.coords in config/client/config.lua.
/bunkeruiAdmins, only while debug = trueOpens a terminal screen from anywhere. Rename: commands.ui in config/server/config.lua.

buyer.command is false by default. Set it, for example to 'bunkerbuyer', to add a dealer terminal command. Away from a terminal it also needs buyer.allowAnywhere to be true.

/bunkeradmin#

SubcommandWhat it does
listPrints every bunker.
sitesPrints every site with its state and price.
site <key> enablePuts a site on sale.
site <key> disableTakes a site off sale. A disabled site nobody owns is not listed on the Acquire screen.
site <key> price <n>Sets a site's price. n is a whole number, 0 or more.
delete <bunkerId>Deletes the bunker at once. Nobody is paid.
transfer <bunkerId> <identifier>Makes a member with access the owner. The old owner becomes an Officer. <identifier> is the framework character identifier.
sell <bunkerId>Removes the bunker like the owner's Abandon button, with no payout, under the same conditions.
give <bunkerId> <amount>Adds to the org funds. <amount> is a whole number from 1 to 1000000000.

The list and sites replies look like this:

#<id> <site key> · <org name> · level <n> · $<balance>
<site key> · <site label> · ENABLED · $<price> (base $<config price>)

ENABLED reads DISABLED for a site off sale. The price in parentheses is price from config.sites.

Bad arguments return the usage line:

Usage: /bunkeradmin <list | delete <id> | give <id> <amount> | sites | site <key> enable|disable|price <n> | transfer <id> <identifier> | sell <id>>

/bunkermission#

SubcommandWhat it does
listPrints every running world mission to the server console.
abort <bunkerId>Aborts that bunker's supply run.
abort <bunkerId> saleAborts that bunker's sale.
preview zone <id> [spawnIndex]Moves you to a spot of a mission zone (city, docks or guarded) and marks it on the map. Default: first spot.
preview dropoff <index>Same for a sale drop-off spot.
cutscene [name]Plays a cutscene for you. Default: the sale drop-off cutscene set in missions.cutscene.name.

preview and cutscene run on your client, so use them in game.

Who is an admin#

The admin commands check the caller against adminGroups through your framework, so you need no add_ace lines. A non-admin gets no reply. The server console passes the check for /bunkeradmin and /bunkermission: type them without the slash.

FrameworkA player is an admin when
ESXxPlayer.getGroup() is in adminGroups.
QBCoreQBCore.Functions.HasPermission is true for a name in adminGroups, or the ACE permission command is allowed.
Qboxqbx_core HasPermission is true for a name in adminGroups.
ox_coreCharacter has a group in adminGroups.

/bunkerui takes terminal, stash, locker, acquire, buyer, crew or stop, and an optional bunker id. terminal, stash and locker open your own bunker or the bunker with that id, where you act as its owner if it is not yours. A session lasts 15 minutes.

Keys and prompts#

WhereKey or controlWhat it does
Interact pointsTarget eye, or E with the text promptUse every point in a bunker.
KeypadMouse and left clickClick a button; C clears the digits, # sends the code.
Intro cutsceneESkips it. cutscene.skipControl in the client config sets the control (38 by default).
TerminalEsc, or the DISCONNECT buttonCloses it.
Task listHold left ALT and press GShows or hides the crew task list. group.hudKey sets the key, group.hudModifier the control you hold (false: the key alone). Players rebind it in the game settings as Show / hide the bunker task list (with ALT).
Crew panelNone by defaultgroup.key is nil. Set it, for example to 'F6', to add a key mapping.
Camera feedLeft and right arrows, mouse look, BackspaceSwitch camera, look, leave.
Placing a stashE, scroll wheel, BackspacePlace, rotate, cancel.
Guard postE, BackspaceConfirm a guard's new post, or cancel.
Gun rack screenMouse, scroll wheel or Q and E, R, left and right click, EscMove and rotate a weapon, flip its side, mount it, cancel, take it back, close.
Keypad hackW, A, S, DSkill check keys, set by raid.breach.hackKeys.