Skill System - QBCore
In-depth installation and usage guide for the skill system created by Reflex Scripts!
Last updated
In-depth installation and usage guide for the skill system created by Reflex Scripts!
Last updated
Thank you for purchasing Reflex Skill System. This guide is to help you better understand how our system operates and how to implement it into your server properly. We highly recommend having some basic knowledge in LUA before attempting to implement this into your server. We designed our skill system so it can be used for literally anything. From making more money based on your skill level to having a completely advanced job that rewards different items depending on your level. Leveling works by gaining XP. Once you have gathered 1000 XP you will advance to the next level. There is so much our skill system has to offer.
Unzip the reflex_skillsystem.zip
Place resource inside your server files
Go to server.cfg or resource.cfg (depending on which one you use) and add ensure reflex_skillsystem
WARNING: DO NOT RENAME THIS RESOURCE OR MODIFY THE ENCRYPTED FILES IN ANY WAY!
Go to qb-core/server/player.lua line 583 and add our sql table to the current table in your files.
Make sure to not replace our example with yours. Simply add { table = 'reflex_skillsystem' }, to your table.
We have designed our system to include 3 exports for you to use. This should make it easy for you to design new scripts or make it easy for you to implement our system into a current script on your server.
CHECKING EXPERIENCE
There is a easy way for you to get the players current experience. You would want to run this export if you were trying to tell the script what to do if the player is a certain level. A example of the export is listed below.
After running this export our system will return the players current XP and current Level.
Adding experience is as simple as running our export. If you wanted to add 500 experience to a player who just successfully caught a fish you would run this export below.
After you run this export if you check you the SQL table and look at Column "Experience" and you should now see that this player has 500 Experience.
We have made it easy for you to add skills to your server. You can simply run this export below when a player either does a action or when they load in. There's 3 things you would to fill in for the export...
What skill are you wanting to create? (EX: Fishing)
Do you want the skill to be visible on the menu? (true or false)
Below is a example of how you would use this export properly...
Finally, we would like to show you how to implement this into a fishing script properly.
First we need to create a callback that will return the players citizenid...below is a example of how to do this.
Next we would then need to create a client event that would create the skill. In this example we create the event when the player loads in, however there is many other ways to do this.
Lastly we would need to create a function to give the XP to the player
This event below is a example of how you could trigger the above event to give a player XP
Keybinds can be configured either by the usersettings folder or in game by pressing escape and going to SETTINGS>Key Bindings>FiveM and look for refles_skillsystem Open Skills Menu from here you can now change the keybinding for opening the UI.
F10
Opens The UI
The default commands can be changed via the usersettings folder under config.lua
/skills
Opens The UI
There is currently NO common issues or bugs at this current time.
If you are having trouble implementing our system into one of your resources we can do this for you. Please open a ticket in our discord to acquire about this.
What Icon would you like to use? ()
If you are having issues with our script feel free to join our discord () and open a ticket.