# Installation

Resource Download

{% hint style="info" %}
To find the asset, you must have made the purchase using your own cfx.re account. Otherwise, you can use the transfer system to move the asset to a different cfx.re account.
{% endhint %}

## Resource Dependencies

{% hint style="info" %}
Do not start the resource without having all the dependencies on your server.
{% endhint %}

{% hint style="danger" %}
Make sure you download the build release when downloading oxmysql and ox\_lib.
{% endhint %}

{% embed url="<https://github.com/overextended/ox_lib/releases>" %}

{% embed url="<https://github.com/overextended/oxmysql/releases>" %}

## Resource positioning

```lua
-- First we start the framework, never below
ensure es_extended or qb-core (or your framework name)

-- The inventory should be executed above
ensure [inventory]
-- the other scripts don't matter - they can be started before or after no difference

-- The storage units
ensure nolag_storageunits
```

## Database

{% hint style="danger" %}
If there is a table named <mark style="color:purple;">**storages**</mark> you should drop it.
{% endhint %}

The SQL will be inserted automatically on the first start.

## Compatible Resources

{% hint style="warning" %}
This part of the script is open, so you can add or edit any of these resource using nolag\_storageunits/custom/\*/\*.lua.
{% endhint %}

### Compatible inventory resources <a href="#compatible-garage-systems" id="compatible-garage-systems"></a>

{% hint style="info" %}
If you don't have any of these systems, contact the inventory creator to see if they can make compatibility, otherwise don't open a ticket for this type of thing.
{% endhint %}

Set the inventory resource you are using in the config/shared.lua:

{% code title="config/shared.lua" %}

```lua
inventory = "ox_inventory",
```

{% endcode %}

| Resource name                                 | Resource Link                                           | Free |
| --------------------------------------------- | ------------------------------------------------------- | ---- |
| ox\_inventory (recommended, don't use others) | <https://github.com/overextended/ox_inventory/releases> | ✅    |
| qb-inventory                                  | <https://github.com/qbcore-framework/qb-inventory>      | ✅    |
