addSkill

This function registers a new skill into the system, including updating configurations and initializing necessary database columns. It ensures that each skill is unique and avoids duplication.

Example

local skillData = {
    name = "lockpicking",
    label = "Lockpicking",
    description = "Allows characters to unlock doors without keys.",
    category = "Thievery",
    icon = "lock",
    levels = {
        lvlMulti = { default = 1.5 },
        lvlMax = 50
    },
    rewardMax = 100,
    reduceMax = 10
}

local skills = exports.dime_skills
skills:addSkill(skillData)

Returns:

  • None. The function does not return any value but updates the UI and alters the database.

Last updated