Configuration

Creating A Skill

Locate data/skills.lua

{
    label = 'Meth', -- Label of the specialization
    identifier = 'meth', -- Make this unique
    skills = {
        {
            label = 'Meth Head', -- Label of the skill (should be unique and different for each skill)
            description = 'I can\'t stop being meth upped', -- Description of the skill
            icon = 'fa-solid fa-seedling', -- Icon for the skill in the menu
            requirements = { -- Requirements to unlock the skill
                { label = '25 Meth Reputation', reputation = 'meth', value = 25 },
            },
            rewards = { -- These are all the available types of rewards
                { type = 'money', money = 'cash', amount = 500 },
                { type = 'item', item = 'lockpick', amount = 1, metadata = {} },
                { type = 'reputation', rep = 'meth', amount = 10 },
            },
            row = 1, -- This number reflects the row in the skill tree
        },
        -- continue making more skills if you'd like
    }
}

Creating Reputation

After creating your skills, now you need to add the reputation linking your rep to the new skill tree. Locate data/reputation.lua


Creating A Contact

Once you have configured that, now we want to create a contact for our new skill. You also have the option to just add the reputation items into an existing contact if you'd like. Here we'll add a new contact instead


Creating The Item

Locate ox_inventory/data/items.lua. We'll create our meth item

Finally we want to make sure its an acceptable item in our drug system. Locate data/items.lua in the drugs table we insert this

Last updated