Configuration
Creating A Skill
{
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
Creating A Contact
Creating The Item
Make sure to have sqlUpdate in data/main.lua set to true. This will auto update your SQL with your new skills and reputation with restarting your resource. You are now done.
Last updated