# 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.\
\&#xNAN;*<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).\
\&#xNAN;*<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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thummie.com/docs/free/skills/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
