Configuration

Everything is in config.lua.

General

OptionDefaultWhat it does
Config.Framework'auto''auto' finds QBCore or ESX; or name one: 'qb', 'esx'
Config.Interaction'target''prompt' (E / d-pad right at the back doors) or 'target' (falls back to the prompt)
Config.TargetResource'auto'With 'target': 'auto' finds qb-target, ox_target or fusing-target; or name one
Config.DebugfalseConsole messages while setting up

Spots

Config.Spots lists where the truck parks. It moves to another spot each restock.

Config.Spots = {
    { at = vector4(-268.76, 2193.12, 129.00, 54.08) },    -- Sandy Shores
    { at = vector4(-343.20, 6242.86,  31.23, 135.47) },   -- Paleto Bay
}

Stock

Config.Stock is the four wall hooks for long guns. Config.Shelved is the sixteen shelf places, left to right, top row first.

FieldWhat it does
itemItem name. Guns must exist on your server
labelName shown
pricePrice
descOptional description
countOptional, how many come in a box
propOptional, the prop shown for things that are not guns
Config.Stock = {
    { item = 'weapon_assaultrifle', label = 'Assault Rifle', price = 1000 },
}

Config.Shelved = {
    { item = 'weapon_pistol', label = 'Pistol', price = 1000,
      desc = 'Nothing special. Nothing traceable either.' },

    { item = 'pistol_ammo', label = 'Pistol Rounds', price = 1000, count = 50,
      prop = 'v_ret_gc_ammo5', desc = 'Fifty of them. Nobody counts.' },
}

Payment

Config.Pay:

OptionDefaultWhat it does
with'dirty''dirty' (marked bills / ESX black money), 'cash' or 'bank'
dirtyItem'markedbills'QBCore: the dirty money item

Ammunition

Config.Ammo:

OptionDefaultWhat it does
mode'boxes''boxes': guns arrive empty and the ammunition boxes are for sale (QBCore). 'loaded': guns arrive with clips magazines and no boxes are sold (always on ESX)
clips2Magazines a gun comes with in 'loaded' mode

Restocking

Config.Stockroom:

OptionDefaultWhat it does
enabletruetrue: random stock (a third of things missing, 1 to 4 of the rest). false: everything, always
hours6Hours between restocks; the truck moves each time

Menu title

OptionDefaultWhat it does
Config.Header.name'BLACK MARKET'Title on the market's menu
Config.Header.lot'LOT 7 · ROUTE 68'Smaller line shown with the title