/ds-skill

Skills resource for QB

Primary LanguageLua

Dotsoft Skills

A simple skills resource for qbcore!

Usage/Examples

-- Adding xp example

local randomXp = math.random(1, 10)
exports['ds-skills']:UpdateSkill('stamina', randomXp)

-- Fetching skill level example

function GetSkill(skill)
    return exports['ds-skills']:GetSkill(skill)
end

local stamina = GetSkill('stamina')
print(stamina)

Installation

    * Add ds-skill to your resources folder
    * Make sure you do `ensure ds-skill` before any resources that require it
    * Import players.sql in your database

    Enjoy!

Screenshots

Screenshot_1