Config
Pay close attention, for this example we are using the job "ammuone" you will need to create a new job for each ammunition in qb-core/shared/jobs.lua
Basic Config Settings
Config.OfflineTax = 0.7 -- The multiplier to calculate tax, if you want 15% tax it would be 0.15
Config.RegisterWeapon = true -- For Offline Sales (PS-MDT Only)
Config.HapticLogger = false -- Unreleased
Setting up location blips
Config.Blips = {
["ammuone"] = { -- Set this to the job name
name = "Ammunation",
location = vector3(11.59, -1106.31, 29.11),
sprite = 110,
scale = 0.6,
color = 0,
shortrange = true
},
}
Management Locations (Different to QB-Management you will need to set that up yourself)
Config.Management = {
["ammuone"] = {
job = "ammuone",
location = vector3(9.17, -1110.97, 29.28),
icon = "far fa-clipboard",
label = "Management",
distance = 2,
width = 0.5,
depth = 0.5,
heading = 0,
},
}
What parts they get from delivery runs.
Config.PartsReward = {
[1] = { item = "pistolupper", amount = 1},
[2] = { item = "pistolframe", amount = 1},
[3] = { item = "pistolbarell", amount = 1},
[4] = { item = "ammocasing", amount = 6},
}
Pickup Locations for Parts
Config.PickupLocations = {
[1] = { location = vector4(-593.18, -1792.3, 22.92, 225.9) },
[2] = { location = vector4(972.86, -2530.98, 28.3, 271.02) },
[3] = { location = vector4(-429.35, 1110.31, 327.68, 352.08) },
[4] = { location = vector4(-773.24, 5597.46, 33.61, 172.08) },
[5] = { location = vector4(-26.36, 6275.31, 31.24, 217.44) },
[6] = { location = vector4(1965.9, 4639.63, 40.81, 24.58) },
[7] = { location = vector4(1603.87, 3596.03, 35.28, 302.43) },
}
Crafting Locations
Config.CraftingLocations = {
[1] = {
id = "AmmuOneCraft",
location = vector3(4.22, -1103.64, 29.11),
heading = 70,
width = 1,
depth = 3,
job = "ammuone",
label = "Crafting Menu",
icon = "fas fa-gun",
},
}
Crafting Recipes
Config.CraftingRecipes = {
["pistol_ammo"] = {
reward_amount = 1,
desc = "1x Ammo Casing",
recipe = {
["ammocasing"] = 1,
}
},
["weapon_fnx45"] = {
reward_amount = 1,
desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
recipe = {
["pistolupper"] = 1,
["pistolframe"] = 1,
["pistolbarell"] = 1,
}
},
["weapon_fn57"] = {
reward_amount = 1,
desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
recipe = {
["pistolupper"] = 1,
["pistolframe"] = 1,
["pistolbarell"] = 1,
}
},
["weapon_vomcp"] = {
reward_amount = 1,
desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
recipe = {
["pistolupper"] = 1,
["pistolframe"] = 1,
["pistolbarell"] = 1,
}
},
["weapon_g20"] = {
reward_amount = 1,
desc = "1x Pistol Upper, 1x Pistol Frame, 1x Pistol Barrell",
recipe = {
["pistolupper"] = 1,
["pistolframe"] = 1,
["pistolbarell"] = 1,
}
},
}
items to be in the employee shop
Config.ShopItems = {
{ name = 'weapon_knife', price = 100, amount = 250 },
{ name = 'weapon_bat', price = 100, amount = 250 },
{ name = 'weapon_hatchet', price = 100, amount = 250 },
{ name = 'weapon_bayonet', price = 100, amount = 250 },
{ name = 'weapon_flip', price = 100, amount = 250 },
{ name = 'weapon_gut', price = 100, amount = 250 },
{ name = 'weapon_huntsman', price = 100, amount = 250 },
{ name = 'weapon_karambit', price = 100, amount = 250 },
{ name = 'weapon_shadow', price = 100, amount = 250 },
}
Cash Register Locations
Config.CashRegisterSales = {
["ammuonesales"] = {
location = vector3(17.62, -1105.58, 29.29),
heading = 154.25,
depth = 0.5,
width = 0.5,
job = "ammuone",
ped = "s_m_y_ammucity_01",
scenario = "WORLD_HUMAN_COP_IDLES",
label = "Sell Weapons",
icon = "fas fa-gun",
},
}
NPC Sales
Config.NPCSales = {
["ammuone"] = {
location = vector3(14.06, -1104.94, 29.11),
heading = 154.25,
ped = "s_m_y_ammucity_01",
scenario = "WORLD_HUMAN_COP_IDLES",
label = "Buy Weapons",
icon = "fas fa-gun",
},
}
Last updated