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.
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.Add the resource
Get the whole
smoke_bunkerfolder, with its map instream, from your Cfx.re Portal and put it inresources. Keep the name: exports and item files use it, such assmoke_bunker.usePlaceable.Add the items
The files in
installdefine the items, andinstall/imageholds one image for each.Copy the entries between the braces of the
return { }wrapper ininstall/items_ox.luainto the returned table ofox_inventory/data/items.lua.codem-inventoryv2andwasabi_inventoryuse 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
.pngfrominstall/imagetoox_inventory/web/images.Copy the entries between the braces of the
return { }wrapper ininstall/items_qb.luaintoqb-core/shared/items.lua(QBShared.Items).ps-inventoryandcodem-inventoryuse this file too. It has no weapons or attachments: map their ox_inventory names to your own inconfig.itemNames.Copy every
.pngfrominstall/imagetoqb-inventory/html/images, or your inventory's image folder.jaksam_inventory,one_inventoryandtgiann-inventoryhave no install file. Add the items from either install file in your inventory's format, with the images frominstall/image. Map names that differ inconfig.itemNames.jaksam,config.itemNames.oneorconfig.itemNames.tgiann.If your inventory is not ox_inventory, set
inventoryImagePathinconfig/shared/config.luato its image folder.Add
camera_partto 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_rifleandarmor_plate: see the FAQ for the skipped-recipe warning.Check the config
In
config/server/config.lua, setadminGroups(defaultadminandgod) to the groups that may use the admin commands. KeepdebuganddebugPrintsfalseinconfig/shared/config.luaon a live server. Configure lists every option.Ensure it after your framework and inventory
Add
ensure smoke_bunkertoserver.cfg:server.cfgensure ox_lib ensure oxmysql ensure qbx_core ensure ox_inventory ensure ox_target ensure smoke_bunkerReplace
qbx_core,ox_inventoryandox_targetwith yours.Restart and check
Restart the server. The first start creates the database tables. Then check:
- The console shows no
smoke_bunkererrors. - 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_scoresandsmoke_bunker_placeables. - Run
bunkeradmin sitesin the server console, without the slash: oneENABLEDline for each of the 11 sites. - In game, a
Bunker For Saleblip marks each unowned site. Walk to the keypad at its tunnel door: a prompt appears. Players whose job is inblipRestrictions.hiddenForJobssee no blips.
A line with the default price:
chumash · Chumash Facility · ENABLED · $1450000 (base $1450000)- The console shows no
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
ensureorder inserver.cfgand 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).
