folder-arrow-downInstallation

This page will give you the information you need to setup our skills script.

circle-exclamation

How to install

  • Download and unzip the thommie-skills.zip

  • Add "ensure thommie-skills" to your server.cfg

  • Add the skills metadata to qb-core > config.lua (see How to add (new) skills)

  • (re)start your server and you are done.

Setup Logs

To setup the logs for the skills script you have to go to qb-smallresources > server > logs.lua and add ['skills'] = 'WEBHOOK', to the existing webhooks. If you do not add this the logs will not work. Please note we currently only support the default logs provided by qbcore

How to add (new) skills

Before you can use this script you have to go to qb-core > config.lua and add the code we have provided down below to QBConfig.Player.PlayerDefaults > metadata right behind phonedata (this only work on new QBCore). Please note this only works on the new qb-core You can easily add new skills by copy and pasting one of the skills in the template down below. After you have pasted it change it to whatever skill you want to add.

Template:

skills = {
    ['recycle'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['dumpster'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['deliveries'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['garbage'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['mining'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['smelting'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['crafting'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['chopshop'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['diving'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['drugssales'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['drugs'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['fishing'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['hunting'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['thieving'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['towing'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['trucking'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
    ['taxi'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
}

Last updated