# Installation Guide

{% stepper %}
{% step %}

### 1. Codesign Bridge

{% hint style="success" %}

#### Framework, Database, and Integration Handling

**This resource requires `cd_bridge` to be installed and running before it can function.**

`cd_bridge` is **drag-and-drop** and requires **no configuration or file editing**.

It handles framework connections, database setup, and error handling behind the scenes. When the bridge starts, it automatically detects and initializes all compatible resources — including all Codesign scripts and any Codesign-compatible scripts you have installed.

**For installation instructions, see the** [**👉 full bridge setup guide →**](https://docs.codesign.pro/paid-scripts/bridge/installation-guide)**.**
{% endhint %}
{% endstep %}

{% step %}

## 2. Download Resource

{% hint style="success" %}

#### Download the Resource from FiveM’s Portal

1. [**👉 Download cd\_doorlock →**](https://portal.cfx.re/assets/granted-assets?search=cd_doorlock)
2. Unzip the downloaded file
3. In your server’s `resources` directory, **create a folder named `[codesign]` if it does not already exist**
4. Place **`cd_doorlock`** (and all other Codesign resources) inside the **`[codesign]`** folder
   {% endhint %}

<div align="left" data-with-frame="true"><figure><img src="/files/48XUv3cfl7o8yH2K4Ile" alt=""><figcaption><p>Example resources folder with a <code>[codesign]</code> directory</p></figcaption></figure></div>
{% endstep %}

{% step %}

## 3. Configure Resource

{% hint style="success" %}

#### Review and Adjust config.lua Options

You must review all configurable options in `[cd_doorlock/configs/config.lua]` and adjust them to suit your server’s needs.

\
Be sure to read the **commented help text** at the end of each line — it explains the purpose of each configuration option.

<img src="/files/3GGmaYVnUnkQtycVR2HH" alt="" data-size="original">

The most important config options are in the **Important** category at the top of `config.lua`.\
All other settings are optional.

<img src="/files/VfPI4uyouhUsdUPABF6k" alt="" data-size="original">
{% endhint %}
{% endstep %}

{% step %}

## 4. Configure Key Binds

{% hint style="success" %}
**Before Starting the Resource**

Before launching this resource on your main or live server, we strongly recommend configuring your **key binds**, as this resource uses [**FiveM’s Key Mapping**](https://docs.codesign.pro/helpful-guides/register-key-mapping) system.

**Where Can I Configure My Key Binds?**

You can configure all key binds directly in `[cd_doorlock/configs/config.lua`**]**.

**Why Is This Important?**

Once a player joins your server with this resource running, you can no longer force key bind changes through the config file — players must adjust them manually through the **in-game pause menu settings**.\
However, any changes you make will still apply to new players who join afterward.

This system is more **optimized** and gives players the flexibility to customize their key binds for both **keyboard** and **controller** use.\
You can also review the [**Default Keybinds**](/paid-scripts/garage/developer-api/keys.md) provided with this resource.
{% endhint %}

<div align="left" data-with-frame="true"><figure><img src="/files/q5RfrGdfsMxAgSx0bYwT" alt=""><figcaption><p>Keybind settings located in the pause menu</p></figcaption></figure></div>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codesign.pro/paid-scripts/door-lock/installation-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
