# Installation Guide

{% stepper %}
{% step %}

### 1. Download Resource

{% hint style="success" %}

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

1. [👉 Download cd\_bridge →](https://portal.cfx.re/assets/granted-assets?search=cd_bridge)
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_bridge`** (and all other Codesign resources) inside the **`[codesign]`** folder
   {% endhint %}

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

{% step %}

### 2. Resource Start Order

{% hint style="success" %}

#### Configure `server.cfg` Correctly

After placing the resource inside the **`[codesign]`** folder, ensure it starts last.

Add this to the bottom of your `server.cfg`:

```
ensure [codesign]
```

**Why:**\
`cd_bridge` auto-detects and integrates with frameworks (ESX / QBCore / QBox) and other resources such as inventory, phone, fuel, vehicle keys, and notifications.

These resources must start **before** `[codesign]` for detection to work correctly.
{% endhint %}

{% hint style="warning" %}

#### Important

⚠️ Place `ensure [codesign]` at the very bottom of your `server.cfg`.
{% endhint %}

<div align="left" data-with-frame="true"><figure><img src="/files/bM99y53IXaFbGR0Ml6fC" alt=""><figcaption><p>Example server.cfg start order with <code>[codesign]</code> loaded last</p></figcaption></figure></div>
{% endstep %}

{% step %}

### 3. Configure Resource

{% hint style="success" %}

#### Bridge Configuration

You should review all configurable options in `cd_bridge/shared/config.lua` to understand what is available.

The bridge uses **automatic detection**, so **no configuration is required in most cases**. Supported frameworks and integrations are detected and handled automatically.

Each configuration option includes **commented lists of supported resources**. These comments show which integrations are available and can be **manually selected if needed**.

Only change these values if auto-detection does not suit your setup or if you want to **force a specific integration**.
{% endhint %}
{% 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/bridge/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.
