# Installation

## Framework Installation

{% tabs %}
{% tab title="QB-Core" %}

### Server CFG scripts order

{% code title="server.cfg" %}

```
ensure oxmysql
ensure ox_lib
ensure qb-core
ensure origen_inventory # If you are using the Origen Inventory V2
ensure origen_clothing
ensure origen_clothing_screenshot #(if you need to take the photos for the clothes)
...(make sure starts other scripts that use inventory functions after the origen_inventory)
```

{% endcode %}

### Now insert the SQL files into your database:

[origen\_clothing/origen\_clothing.sql](https://docs.origennetwork.store/origen-clothing/installation/sql)

### Start the script

If you complete the order for the all installation you can start the script correctly

{% hint style="info" %}
**IMPORTANT**

Installation of QB-Core is automatic and **requires NO code modifications**.
{% endhint %}
{% endtab %}

{% tab title="ESX" %}

### Server CFG scripts order

{% code title="server.cfg" %}

```
ensure oxmysql
ensure ox_lib
ensure es_extended
ensure origen_inventory # If you are using the Origen Inventory V2
ensure origen_clothing
ensure origen_clothing_screenshot #(if you need to take the photos for the clothes)
...(make sure starts other scripts that use inventory functions after the origen_inventory)
```

{% endcode %}

### Now insert the SQL files into your database:

[origen\_clothing/origen\_clothing.sql](https://docs.origennetwork.store/origen-clothing/installation/sql)

### Start the script

If you complete the order for the all installation you can start the script correctly

{% hint style="info" %}
**IMPORTANT**

Installation of ESX is automatic and **requires NO code modifications**.
{% endhint %}
{% endtab %}

{% tab title="QBox" %}

### Server CFG scripts order

{% code title="server.cfg" %}

```
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure origen_inventory # If you are using the Origen Inventory V2
ensure origen_clothing
ensure origen_clothing_screenshot #(if you need to take the photos for the clothes)
...(make sure starts other scripts that use inventory functions after the origen_inventory)
```

{% endcode %}

### Now insert the SQL files into your database:

[origen\_clothing/origen\_clothing.sql](https://docs.origennetwork.store/origen-clothing/installation/sql)

### Start the script

If you complete the order for the all installation you can start the script correctly

{% hint style="info" %}
**IMPORTANT**

Installation of QBox is automatic and **requires NO code modifications**.
{% endhint %}
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
We recommend uploading our script files without using FileZilla, as the upload process may corrupt our scripts. As a recommendation, please use WinSCP or other reliable programs to upload the files.
{% endhint %}

## Setup CFG Permissions

{% tabs %}
{% tab title="QBCore" %}
Check that you have all these lines in your cfg, if you don't have any add them.

```
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_ace resource.qb-core command allow
add_ace qbcore.god command allow
add_principal qbcore.god group.admin
add_principal qbcore.god qbcore.admin
add_principal qbcore.admin qbcore.mod
```

Now you will need to register your license as the qbcore.god group. To do this, you can use this example **replacing your license**.

```python
add_principal identifier.license:8f1a3xxxxxxxxxxxxxxxx qbcore.god # Player Name
```

{% endtab %}

{% tab title="ESX" %}
You will need to check that the permission group your character has is one of those listed in config/\_main.lua. Example of the default ones:

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

```lua
-- Permissions
-- Permissions required to manage the script in game
-- Leave empty {} to allow access to all players
Config.Permissions = {
    'god',
    'superadmin',
    'admin',
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
