Skip to content

dollar-src/src-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRC SKILLS

| If you are intested in recieving github updates join the community on Discord! |

  • A database held skill/XP system for QBCore and ESX

PREVIEW

image-removebg-preview (1)

[ Installation ]

  • Download the resource and drop it to your resource folder.
  • Import the SQL file to your server's database (if u use QBCore install qb.sql/ if u use ESX use esx.sql)
  • Add start src-skills to your server.cfg

[ Using src-skills ]

  • To Update a skill please use the following export:
   exports["src-skills"]:UpdateSkill(skill, amount)
  • For example, to update "Mining"
    exports["src-skills"]:UpdateSkill("Mining", 1)
  • The export to check to see if a skill is equal or greater than a particular value is as follows:
   exports["src-skills"]:CheckSkill(skill, val)
  • For Example to check skill
   exports["src-skills"]:CheckSkill("Mining", 100, function(hasskill)
    if hasskill then
        print('Success')
       else
        print('Error')
     end
    end)
  • To check for skill use this export
    exports["src-skills"]:GetCurrentSkill(skill)
  • For Example to check current skill
   local skill =  exports["src-skills"]:GetCurrentSkill('Mining')
   print('Skill Level is'..skill)
  • QBCore SQL
ALTER table players
	ADD COLUMN `skills` LONGTEXT;
  • ESX SQL
ALTER table players
	ADD COLUMN `skills` LONGTEXT;

Inspiration

Inspiration

Dependencies

ox_lib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages