βš™οΈConfiguration

Detailed explanation of the config file to adapt the resource to your player needs.

Config.lua

-- Framework : 
--            "qb"  : QBCORE
--            "esx" : ESX
Config.Framework = "qb"
-- INVENTORY : 
--            "qb"  : qb-inventory
--            "ox"  : ox-inventory         
Config.inventory = "qb"
-- IMAGE DIRECTOTY :
--            "qb-inventory/html/images/"  : qb-inventory
--            "ox_inventory/web/images/"  : ox-inventory                     

Config.img = "qb-inventory/html/images/" --"ox_inventory/web/images/"
-- qb-core and qb-weapons versions:
--            "old" : old version
--            "new" : latest version ***** RECOMMENDED
Config.qbVersion = "new" 
-- Craftables List
-- model            : item prop
-- zoffset          : Z value to postion perfectly the prop on the Ui
-- rep              : Reputation needed ("0" if no reputation needed)
-- amount           : Amount to give after craft ("1" is Recommeneded)
-- time             : crafting time
-- description      : Description written in the Ui
-- costs            : Required items to craft
Config.craftables = {
    ['thermite'] = {
        model = "hei_prop_heist_thermite",
        zoffset = 0.12,
        rep = 70, 
        amount = 1,
        requireBlueprint = true, 
        time = 50, 
        description = "Thermite is a pyrotechnic composition of metal powder and metal oxide. When ignited by heat or chemical reaction, thermite undergoes an exothermic reduction-oxidation (redox) reaction. Most varieties are not explosive, but can create brief bursts of heat and high temperature in a small area. Its form of action is similar to that of other fuel-oxidizer mixtures, such as black powder.", 
        costs = { 
            ['metalscrap'] = 2,

        }
    },
    ['drill'] = { 
        model = "prop_tool_drill",
        zoffset = 0.17,
        rep = 0, 
        amount = 1,
        requireBlueprint = true, 
        time = 25, 
        description = "bla bla bla.", 
        costs = { 
            ['metalscrap'] = 20,
            ['aluminum'] = 10,
            -- ['iron']=  50,
            -- ['rubber'] = 20,
            -- ['glass'] = 10,
            -- ['aluminumoxide']=  50,
            -- ['copper']=  50,
        }
    },
    ['repairkit'] = { 
        model = "h4_prop_h4_tool_box_02",
        description = "bla bla bla.", 
        zoffset = 0.0,
        rep = 0, 
        amount = 1,
        requireBlueprint = false, 
        time = 10, 
        costs = { 
            ['metalscrap'] = 21,
            ['aluminum'] = 11,
            -- ['iron']=  51,
            -- ['rubber'] = 21,
            -- ['glass'] = 11,
            -- ['aluminumoxide']=  51,
            -- ['copper']=  51,
        }
    },
}

All weapons are added, this is just an example.

Last updated