# Installation

Step by step documentation how to properly install script.

## Script

1. Download the script from [keymaster](https://keymaster.fivem.net).
2. Open downloaded .zip, copy `[rcore_doorlock]` folder and put it in your resources folder.
3. Go to your server.cfg and add `ensure [rcore_doorlock]`.
4. All bridge resources should be auto detectable without editing config. If there is any unexpectable issue in console with bridge, go to `[rcore_doorlock]/rcore_doorlock/config.lua` and edit `Framework`, `Inventory`, `Database`, `Target`, `Society`, `Gangs` and `Dispatch` by your server specifications.

```lua
Framework = Framework.AUTO_DETECT, -- [ESX - es_extended, QBCore - qb-core, QBX = qbx_core, Standalone - standalone]
Inventory = Inventory.AUTO_DETECT, -- [OX - ox_inventory, QB - qb-inventory, QS - qs-inventory, MF - mf-inventory, PS - ps-inventory, LJ - lj-inventory, CORE - core_inventory, CHEZZA - inventory, CODEM -codem-inventory, ORIGEN - origen_inventory, TGIANN - tgiann-inventory, AK47 = ak47_inventory, AK47_QB = ak47_qb_inventory, NONE = none]
Database = Database.AUTO_DETECT,   -- [OX - ox_mysql, MYSQL_ASYNC - mysql-async, GHMATTI - ghmattimysql]
Target = Target.AUTO_DETECT,       -- [NONE - standalone, OX - ox_target, QB - qb-target, QTARGET - qtarget]
Society = Society.AUTO_DETECT,     -- [ESX - es_extended, QBCore - qb-core, FD_BANKING = fd_banking, RENEWED_BANKING = Renewed-Banking, CRM_BANKING = crm-banking]
Gangs = Gangs.AUTO_DETECT,         -- [QBCore - qb-core, QBX = qbx_core, RCORE - rcore_gangs, BRUTAL - brutal_gangs]
Dispatch = Dispatch.AUTO_DETECT,   -- [NONE = standalone, CODESIGN - cd_dispatch, CODEM - codem-dispatch, CORE - core_dispatch, DUSA - dusa_dispatch, EMERGENCY - emergencydispatch, ORIGEN - origen_police, QUASAR -qs-dispatch, RCORE - rcore_dispatch, TK - tk_dispatch, LB = lb-tablet]
```

## Configuration

All values are properly described in config file of the script. Configuration files are located in `[rcore_doorlock]/rcore_doorlock`!

## Debug

If you have any issue with script and you don't know how to solve it, set `Debug = true` in configuration file to see additional informations printed to client console *(F8)* and server console. Screenshots will help our support to solve faster and better your problem in ticket.

{% hint style="info" %}
For beter communication and faster solving your issue, please send a screenshot of the console when the script starts to the ticket to get information about the status of the script.
{% endhint %}

![](https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-7f99d482459e1f0ad71d5e24c5798c0d7cb3b7fb%2FdoorlockDebug.png?alt=media)
