Smoke Bunker

Smoke Bunker install

Install dependencies and items, set the ensure order and check that the bunker sites answer.

New to Cfx.re Portal scripts? Read Before you install.

  1. Install the dependencies

    Install ox_lib and oxmysql, plus one framework and one inventory (auto-detected). Optional: a target, cd_dispatch (also receives police alerts) and a clothing resource for the wardrobe. Integrations lists the supported resources.

  2. Add the resource

    Get the whole smoke_bunker folder, with its map in stream, from your Cfx.re Portal and put it in resources. Keep the name: exports and item files use it, such as smoke_bunker.usePlaceable.

  3. Add the items

    The files in install define the items, and install/image holds one image for each.

    Copy the entries between the braces of the return { } wrapper in install/items_ox.lua into the returned table of ox_inventory/data/items.lua. codem-inventoryv2 and wasabi_inventory use this file too.

    data/items.lua
    ['steel'] = { label = 'Steel', weight = 500, stack = true, description = 'Bunker crafting material' },

    Keep server = { export = 'smoke_bunker.usePlaceable' } on the four placeable items.

    Copy every .png from install/image to ox_inventory/web/images.

    If your inventory is not ox_inventory, set inventoryImagePath in config/shared/config.lua to its image folder.

    Add camera_part to your inventory: the install files do not define it, and a camera repair uses one, from you or the bunker stash. Another name: storage.cameraPartItem.

    Workshop recipes also use item names the install files do not define, such as metalscrap, ammo_rifle and armor_plate: see the FAQ for the skipped-recipe warning.

  4. Check the config

    In config/server/config.lua, set adminGroups (default admin and god) to the groups that may use the admin commands. Keep debug and debugPrints false in config/shared/config.lua on a live server. Configure lists every option.

  5. Ensure it after your framework and inventory

    Add ensure smoke_bunker to server.cfg:

    server.cfg
    ensure ox_lib
    ensure oxmysql
    ensure qbx_core
    ensure ox_inventory
    ensure ox_target
    ensure smoke_bunker

    Replace qbx_core, ox_inventory and ox_target with yours.

  6. Restart and check

    Restart the server. The first start creates the database tables. Then check:

    1. The console shows no smoke_bunker errors.
    2. The database has these tables: smoke_bunker_bunkers, smoke_bunker_members, smoke_bunker_sites, smoke_bunker_logs, smoke_bunker_ledger, smoke_bunker_listings, smoke_bunker_raids, smoke_bunker_range_scores and smoke_bunker_placeables.
    3. Run bunkeradmin sites in the server console, without the slash: one ENABLED line for each of the 11 sites.
    4. In game, a Bunker For Sale blip marks each unowned site. Walk to the keypad at its tunnel door: a prompt appears. Players whose job is in blipRestrictions.hiddenForJobs see no blips.

    A line with the default price:

    chumash · Chumash Facility · ENABLED · $1450000 (base $1450000)

If it does not work#

  • Escrow error such as You lack the required entitlement: see Escrow errors.
  • No bunker blips, or a bridge is missing: check the ensure order in server.cfg and restart.
  • Players see no keypad prop and get a code dialog: see the FAQ.
  • Any other console line: see the FAQ.

Still stuck? Get support with your framework, inventory, target and fxmanifest.lua version (0.10.1).