Skip to content

lush0n3/sy_skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SY_SKILLS

[ DEPENDENCY ]

[ SETUP ]

  • Extraer archivo en la carpeta de sus recursos
  • Acoplar SQL a la base de datos
  • ensure sy_skills despues de ox_lib

[ NEW ]

  • Add custom skills
    Example to add new custom skill
    ['Miner'] = {
        Current = 0,
        RemoveAmount = 0,
        gtaAbility = false,           -- Turn false for custom skill 
        Stat = "Miner",
        icon = 'fas fa-trowel',
        info = 'Description',
    },
  • Add another menu for customs skills

  • Add locales (es, en)

  • Add WEapon check abiliti Config preview

    Config.WeaponLvlCheck = true
    
    Config.WeaponLvL = {
        ['WEAPON_PISTOL'] = {xp = 100 },
        ['WEAPON_BAT'] = {xp = 5.0 },
        ['WEAPON_ADVANCEDRIFLE'] = {xp = 30.0 },
    }

[ DOC ]

  • Update skill
    local amount = 50 --XP Ammount
    local skill = 'Minero'  -- Skill Name
    exports["sy_skills"]:UpdateSkill(skill, amount)
  • CheckSkill
    exports["sy_skills"]:CheckSkill(skill, val)
  • CheckSkill example
exports["sy_skills"]:CheckSkill("Minero", 100, function(checkit)
    if checkit then
       print('succes skill')
    else
        print('fail check skill')
    end
end)
  • GetSkill
    exports["sy_skills"]:GetCurrentSkill(skill)

Menu previews

  • Principal menu


  • GTA Abilitis


  • Custom Skills

About

Forked from gamz-skillsystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages