# Installation

## 1. Ensure Dependencies

The very first step of the installation is to have the dependencies installed and make sure they are ensure before the `t1ger_lib` resource.&#x20;

{% hint style="info" %}
Make sure to download the latest .zip files and not the source-code!
{% endhint %}

### [**oxmysql**](https://github.com/overextended/oxmysql/releases)

*FiveM resource to communicate with a MySQL database using* [*node-mysql2*](https://github.com/sidorares/node-mysql2)*. (You might already be running this as it's becoming a very standard SQL wrapper to use).*

**Download:** <https://github.com/overextended/oxmysql/releases>

### [**ox\_lib**](https://github.com/overextended/ox_lib/releases)

*A FiveM library and resource implementing reusable modules, methods, and UI elements.*

**Download:** <https://github.com/overextended/ox_lib/releases>

## 2 - Get T1GER Library

* Get the `t1ger_lib` resource from: <https://store.t1ger.net/package/5579988> (FREE)&#x20;
* Download from: [FiveM's Keymaster](https://keymaster.fivem.net/login?return_url=/asset-grants).

## 3 - Ensure T1GER Library

Unzip `t1ger_lib.zip` folder and place it into your `resource` folder.

{% hint style="warning" %}
To avoid any startup issues, we highly recommend to place it inside the root resource folder and not in any sub-folder!
{% endhint %}

Add `ensure t1ger_lib` to your server start config.&#x20;

{% hint style="danger" %}
Make sure to ensure `t1ger_lib` after your framework (`es_extended`/`qb-core`), target (`ox_target`/`qb-target`) and inventory (`ox_inventory`/`qb-inventory`) resources!
{% endhint %}

<div align="left"><figure><img src="https://2167335559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiDWIMbFBeXle-trOlk%2Fuploads%2F5vJguEpzLyI3xhBQu79T%2Fimage.png?alt=media&#x26;token=ba155e8c-6a54-44e9-ae60-d68e505133c1" alt=""><figcaption><p>Example of my server.cfg startup order</p></figcaption></figure></div>

## 4 - Configuration

The config options can be found inside `t1ger_lib/config.lua` and you must go through every option. Refer to [configuration](https://docs.t1ger.net/resources/t1ger-library/configuration "mention") for in-depth explanations of the configurable options.

{% hint style="success" %}
Use the end-text comments which explains every option!
{% endhint %}

{% hint style="danger" %}
Important to configure [`Inventory`](https://docs.t1ger.net/resources/t1ger-library/installation/inventory), `TargetSystem`, `Garage and` [`SocietyAccount`](https://docs.t1ger.net/resources/t1ger-library/installation/society-account) options!
{% endhint %}

### 4.1 - Inventory

Please refer to [inventory](https://docs.t1ger.net/resources/t1ger-library/installation/inventory "mention") on guide/instructions on how to setup inventory.&#x20;

### 4.2 - Society Account

Please refer to [society-account](https://docs.t1ger.net/resources/t1ger-library/installation/society-account "mention") on guide/instructions on how to setup society account and integrate required functions.&#x20;

## 5 - Ready

Congratulations, you've successfully installed the `t1ger_lib` resource. Restart the server and you will be all set.&#x20;
