# 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="/files/rqoEq7rSCfNqJZKGZUBJ" 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](/resources/t1ger-library/configuration.md) 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`](/resources/t1ger-library/installation/inventory.md), `TargetSystem`, `Garage and` [`SocietyAccount`](/resources/t1ger-library/installation/society-account.md) options!
{% endhint %}

### 4.1 - Inventory

Please refer to [Inventory](/resources/t1ger-library/installation/inventory.md) on guide/instructions on how to setup inventory.&#x20;

### 4.2 - Society Account

Please refer to [Society Account](/resources/t1ger-library/installation/society-account.md) 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;


---

# 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.t1ger.net/resources/t1ger-library/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.
