[OX] Inventory Crafting

We have adjusted the skill system, to be ready to use with ox_inventory. This is configured within @ox_inventory/data/crafting.lua Below we also have provided code example and some comments, for understanding.

return {
    items = {
        {
            name = 'repairkit',
            ingredients = {
                aluminum = 10,
                screwdriver_set = 1,
                metal = 1
            },
            duration = 7500,
            count = 1,
            skills = {
                required = {crafting = 1, intellect = 2},  -- Requires crafting level 1 and intellect level 2, you can also add just one, or even more.
                reward = {crafting = 25}    -- Rewards 10 crafting XP
            }
        },
    },
    points = {
        -- POINTS
    },
    zones = {
        -- ZONES
    },
    blip = { id = 489, colour = 24, scale = 0.5 },
}

Last updated