Crafting

{
    name = 'Demo Crafting', -- unique name
    blip = {enable = true, id = 643, color = 35, scale = 0.6},

    --job check to open the bench
    jobs = {
        police = 0, --job name and minumum rank
        sheriff = 0
    },

    --gang check to open the bench
    gangs = {
        balles = 1, --gang name and minumum rank
        lostmc = 0,
    },

    recipes = {
        {
            item = 'weapon_pistol', -- reward item name
            amount = 1, -- reward amount
            required = {
                weapon_pistol = {amount = 1, remove = true}, -- item that will remove
                cleaner = {amount = 1}, -- item that will not remove
                toolkit = {amount = 0.2}, -- remove required item quality 20%
            },
            duration = 5,--seconds
        },
    },
    zones = {
        {
            coords = vector4(607.55, -3092.41, 6.02, 360.0),
            size = vector3(2.5, 1.0, 1.5),
        },
    },
    target = {label = 'Weapon Repair', icon = 'fa-pen-ruler', distance = 2.5},
    peds = { -- if empty then there will be no ped. Only polyzone with target
        'mp_m_waremech_01',
    }
},

Last updated