Void Hub Scripts
  • Void Hub Scripts
  • Jobs
    • vhs-mining
    • vhs-woodcutting
  • Utility
    • vhs-drugs
    • vhs-levels
    • vhs-crafting
  • FREE
    • vhs-multijobs
    • vhs-recycle
Powered by GitBook
On this page
  1. Utility

vhs-levels

1) Install SQL into your database before running the script

2) Edit the config to your liking, ensure you edit the framework requirements at the top of the config file

Server-Side Exports

exports['vhs-levels']:addXP(src, skillName, xpToAdd) - will add xp to the desired skill

local src = source   -- ensure source is defined!

rest of your code.... 

exports['vhs-levels']:addXP(src, 'police' 69)

exports['vhs-levels']:getSkillXP(src, skillName) - will return data from the requested skill

local src = source -- ensure src is defnied!
local data = exports['vhs-levels']:getSkillXP(src, 'Police') 
print('server-side - getSkillXP: ', json.encode(data))

exports['vhs-levels']:getPlayersSkill(skillName) - will return all players level & xp for skill

local src = source -- ensure src is defnied!!
local data = exports['vhs-levels']:getPlayersSkill('Police') 
print('server-side - getPlayersSkill: ', json.encode(data))

Client-Side Exports

exports['vhs-levels']:getLevelData(skillName) - will return the data for the skill

local data = exports['vhs-levels']:getLevelData('Police') 
print('getLevelData: ',json.encode(data))
Previousvhs-drugsNextvhs-crafting

Last updated 11 months ago

Page cover image