# Installation

First we want you to know that our script only supports the following versions of the two most used frameworks, in older versions it may be usable but we do not provide support since the development focuses on the following versions:

{% tabs %}
{% tab title="QBCore" %}

```
ensure oxmysql/icmysql
ensure qb-core
...(make sure to start the inventory before the script)

ensure origen_doorlock
```

#### Now you have to insert the SQL files into your database:

[origen\_doorlock/database.sql](https://docs.origennetwork.store/origen-doorlock/installation/sql)

**Command to use the script:** `/doors`
{% endtab %}

{% tab title="ESX" %}

```
ensure oxmysql/icmysql
ensure es_extended
...(make sure to start the inventory before the script)

ensure origen_doorlock
```

#### Now you have to insert the SQL files into your database:

[origen\_doorlock/database.sql](https://docs.origennetwork.store/origen-doorlock/installation/sql)

**Command to use the script:** `/doors`
{% 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 %}

#### Config File

```lua
Config.Language = 'en'

Config.Drawtext = 'qb-core' -- Draw text library

Config.Debug = false -- Enable debug mode

Config.GroupPermissions = { --? Groups that can use the commands
    'god',
    'admin',
    'superadmin',
}

Config.Commands = 'doors' --? Command to open the menu

Config.Logs = { --? Discord webhooks
    CreateDoor = 'YOUR_DISCORD_WEBHOOK',
    DeleteDoor = 'YOUR_DISCORD_WEBHOOK',
    DoorsUsage = 'YOUR_DISCORD_WEBHOOK',
}

---------------------------------------------------------
--------------------------CORE---------------------------
---------------------------------------------------------
Config.GetCustomCoreObject = function()
    return nil -- Return your core object here
end
```
