# Installation

### Dependencies

> * **ox\_lib:** <https://github.com/CommunityOx/ox_lib/releases>

### How to install

1. Run the **.sql** files in your Database manager.
   1. *If using esx run `esx_db.sql` / if using qb-core/qbox run `qbcore_db.sql`*&#x20;
2. If using an inventory that supports metadata (ex. ox\_inventory, qs-inventory, qb-inventory....) import the contract item from **\_ITEMS folder**.
3. Read and configure all the config files.
   1. The file \_framework.lua will auto detect your Framework, no need to modify it.

<details>

<summary>Updating from Dealership V1</summary>

* If you are updating from **av\_dealership V1** you need to **replace ALL files**, you can do a backup of your current **dealerships.json and veh\_data.json** files and place them inside the **json folder**.
* Run the .sql file to create the av\_rented table in database.

</details>

{% hint style="warning" %}
If using **qbox** make sure to uncomment the qbox imports from `fxmanifest.lua` lines 14 and 19.
{% endhint %}
