fxCrafting

Config File

Config = {
    UseTarget = GetConvar('UseTarget', 'false') == 'true', -- Use qb-target interactions (don't change this, go to your server.cfg and add `setr UseTarget true` to use this and just that from true to false or the other way around)
    useFxTextUI = true, -- Whether or not to use our free script fxTextUI (Otherwise will use default qb) 
    useFxNotify = true, -- Whether or not to use our free script fxNotify (Otherwise will use default qb)
    inventoryIMGPath = 'qb-inventory/html/images/',
    Workbenches = {
        Default = {
            showBlip = true,
            needJob = nil, -- Leave nil if no job is required
            jobRank = 0,
            zoneOptions = { -- Used for when UseTarget is false
                length = 3.0,
                width = 3.0,
                debugPoly = false
            },
            blipData = {
                sprite = 402,
                display = 4,
                scale = 0.9,
                colour = 2,
                title = 'Default Workbench'
            },
            prop = 'prop_tool_bench02',
            coordinates = vector4(265.3162, 2590.8999, 44.1641, 190.6606),
            Categories = { -- You can add as much categories and items as you want, just follow the examples below
                ['Utilities'] = {
                    ['Armor'] = {
                        timeToCraft = 15,
                        item_name = 'armor',
                        materials = {
                            { item = 'rubber', amount = 2, removeItem = false, removeChance = 100 }, -- 100% chance to remove
                            { item = 'plastic', amount = 1, removeItem = false, removeChance = 50 }, -- 50% chance to remove
                        },
                        outputAmount = 1
                    },
                    ['Bandage'] = {
                        timeToCraft = 5,
                        item_name = 'bandage',
                        materials = {
                            { item = 'rubber', amount = 2, removeItem = true, removeChance = 100 }
                        },
                        outputAmount = 1
                    },
                },
                ['Drugs'] = {
                    ['Coke Brick'] = {
                        timeToCraft = 10,
                        item_name = 'coke_brick',
                        materials = {
                            { item = 'cocaine_baggy', amount = 5, removeItem = true, removeChance = 100 },
                            { item = 'aluminumoxide', amount = 1, removeItem = false } -- Won't be removed
                        },
                        outputAmount = 1
                    },
                },
            }
        }
    }
}

Last updated