Skip to content

QB skill system converted from gamz-skillsystem with edits

License

Notifications You must be signed in to change notification settings

waseem-h/qb-skillz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moved to a new repo so issues can be opened old version can be found here

For more support or to see more of my resources you can join my discord

[ What is this? ]

  • A skillsystem based on GTA's existing skills.
  • Very easy to configure, just check the config.
  • You can for example add this to your gym script to get stronger.

[ Functions ]

  • Skills displays in ESC -> Stats -> Skills
  • All the skills that is added by default have a unique "function", for example if you run your stamina will increase by the time.
  • Depending on the skill level your character will perform the skill better, for example if your stamina is high you can run longer without getting exhausted.
  • Every Config.UpdateFrequency (seconds) it will remove the current RemoveAmount for that skill.

[ Installation ]

  • Download the resource and drop it to your resource folder.
  • Import the SQL file to your servers DB
  • Add start qb-skillz to your server.cfg

[ How do I use it? ]

  • To Update a skill you do following:
    exports["qb-skillz"]:UpdateSkill(skill, amount)

so if you were to add 2% to Stamina you do

    exports["qb-skillz"]:UpdateSkill("Stamina", 2)
  • An export to check to see if a skill is equal or greater than a value
    exports["qb-skillz"]:CheckSkill(skill, val)

so if you want to check if your lung capacity is 50 or over you would do

exports["qb-skillz"]:CheckSkill("Lung Capacity", 50, function(hasskill)
    if hasskill then
        print("Lung Capacity 50 or over")
    else
        print("Lung Capacity lover than 50")
    end
end)
  • There is also an export to get the current skill if you were to do something from another script
    exports["qb-skillz"]:GetCurrentSkill(skill)

About

QB skill system converted from gamz-skillsystem with edits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%