# Tuning System

## INSTALLATION

### 1.  Resource Download

\
**To get started, you'll need to download your new resource previously purchased from** [**shop**](https://loureiro-stoned.gitbook.io/docs/overview/website-shop)**.** For that we must log in with our account at [`keymaster`](https://keymaster.fivem.net/asset-grants/) and look for the Asset grants section, there we will find our complete package.

{% hint style="info" %}
To get updates you get them from the same website ([keymaster](https://keymaster.fivem.net/asset-grants)).
{% endhint %}

### 2. Unzip The Folder

Unzip the script folder than **copy `"stoned-tuning"`** and **paste** it on your server **resources folder**.

<figure><img src="https://3385301882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6RtuIyKM7kJj3UumLC0%2Fuploads%2FhyIP6IVxLKLI943nhXGi%2Fimage.png?alt=media&#x26;token=04bd97a6-5eab-4cdd-9e9c-4eeb5d9ff045" alt=""><figcaption></figcaption></figure>

### 3. Ensure

Put this line in your server.cfg.

{% hint style="warning" %}
This should be under your essentials resources.
{% endhint %}

```
ensure stoned-tuning
```

## CONFIGURATION

### 1. Setup Framework

*stoned-tuning\shared\main.lua*

* Choose your framwork here:

&#x20;

<figure><img src="https://3385301882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6RtuIyKM7kJj3UumLC0%2Fuploads%2FZ6eh7qMHcizFtoMDGRQ9%2FScreenshot_1.png?alt=media&#x26;token=e17822de-0238-4bd8-b4d8-b590df63feca" alt=""><figcaption></figcaption></figure>

### 2. Configure each tuning location:

*stoned-tuning\shared\main.lua*

* Coords;
* Marker type (by id);
* Label for blip (map) and interface title;
* You can decide whether access is restricted to jobs or for all players;
* From which balance will the money be removed (job/society or the player's bank/money).

<figure><img src="https://3385301882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6RtuIyKM7kJj3UumLC0%2Fuploads%2FzFLygrA7y57DJPuXwxjo%2FScreenshot_2.png?alt=media&#x26;token=1c4e6327-674b-49ce-97cb-b3f6d4a9020c" alt=""><figcaption></figcaption></figure>

### 3. Configure specific tunings

*stoned-tuning\shared\tunes.lua*

* Img
* Price
* and other details...

<figure><img src="https://3385301882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6RtuIyKM7kJj3UumLC0%2Fuploads%2FnvJq4LZiBLwFUM4VpMf0%2FScreenshot_3.png?alt=media&#x26;token=68001385-d908-4d87-9a5d-d8a771924e1d" alt=""><figcaption></figcaption></figure>

### 4. Setup your webhook & log

*stoned-tuning\server\webhook.lua*

<figure><img src="https://3385301882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6RtuIyKM7kJj3UumLC0%2Fuploads%2FvYiESGFo80eGXr0WsKlN%2FScreenshot_4.png?alt=media&#x26;token=7a1f7629-c6ca-4525-a6c6-11ecb9977ed6" alt=""><figcaption></figcaption></figure>
