Configuration
Everything is in config.lua.
General
| Option | Default | What 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.Debug | false | Console 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.
| Field | What it does |
|---|---|
item | Item name. Guns must exist on your server |
label | Name shown |
price | Price |
desc | Optional description |
count | Optional, how many come in a box |
prop | Optional, 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:
| Option | Default | What it does |
|---|---|---|
with | 'dirty' | 'dirty' (marked bills / ESX black money), 'cash' or 'bank' |
dirtyItem | 'markedbills' | QBCore: the dirty money item |
Ammunition
Config.Ammo:
| Option | Default | What 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) |
clips | 2 | Magazines a gun comes with in 'loaded' mode |
Restocking
Config.Stockroom:
| Option | Default | What it does |
|---|---|---|
enable | true | true: random stock (a third of things missing, 1 to 4 of the rest). false: everything, always |
hours | 6 | Hours between restocks; the truck moves each time |
Menu title
| Option | Default | What 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 |