> For the complete documentation index, see [llms.txt](https://docs.thummie.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thummie.com/docs/free/skills/installation.md).

# Installation

{% hint style="warning" %}
Make sure you read everything carefull when installing our skills script.
{% endhint %}

## 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.\
*<mark style="color:red;">Please note we currently only support the default logs provided by qbcore</mark>*

## 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).\
*<mark style="color:red;">Please note this only works on the new qb-core</mark>*\
\
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:

<pre class="language-lua"><code class="lang-lua">skills = {
<strong>    ['recycle'] = {totalXP = 0, currentXP = 0, neededXP = 500, level = 0},
</strong>    ['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},
}
</code></pre>
