> For the complete documentation index, see [llms.txt](https://docs.cdev.shop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cdev.shop/fivem/cdev-cone/installation-guide-qb-inventory.md).

# Installation Guide QB Inventory

{% stepper %}
{% step %}

### Install resource from [Portal](https://portal.cfx.re/assets/granted-assets)

**After installing, you should get a zip file with the name shown below.**

* <mark style="color:yellow;">cdev\_cOne.pack.zip</mark>
  {% endstep %}

{% step %}

### Create the folder and extract the zip inside it.

➤ Step 1: Create the <kbd><mark style="color:red;">cdev\_cOne<mark style="color:red;"></kbd> folder.

➤ Step 2: Extract the contents of <mark style="color:yellow;">cdev\_cOne.pack.zip</mark> into the <kbd><mark style="color:red;">cdev\_cOne<mark style="color:red;"></kbd> folder.

{% hint style="danger" %}
**It is extremely essential that the folder has the exact same name as above, otherwise the resource will not work properly.**
{% endhint %}
{% endstep %}

{% step %}

### Server.cfg Configuration

This resource must always be started **after your&#x20;**<mark style="color:yellow;">**framework**</mark>**&#x20;and any&#x20;**<mark style="color:yellow;">**other**</mark>**&#x20;required resources**.

It is essential to follow the correct startup order to ensure proper functionality and avoid conflicts.

**Below is an example screenshot showing the recommended startup order:**

<div align="left"><figure><img src="https://1004862655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPhIA9eCA4bwgx77hxx4i%2Fuploads%2Firn8i4NxLD2kyuSuMX0I%2Fimage.png?alt=media&amp;token=d40a6bce-5f8f-4b4a-9b8c-f2b4a3f48cbc" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Cdev\_cOne Configuration

🚩 <mark style="color:red;">**To work correctly, cdev\_cOne requires the proper configuration of the inventory in the**</mark> **`config.lua`** <mark style="color:red;">**file located in the**</mark> **`cdev_cOne > public > shared`** <mark style="color:red;">**folder. Below is how the file should be configured to ensure everything functions properly.**</mark>

<figure><img src="https://1004862655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPhIA9eCA4bwgx77hxx4i%2Fuploads%2FVZSx4qe44QikS2qsMWn5%2Fimage.png?alt=media&amp;token=fa774956-7989-4555-aa7a-90be4d336b52" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %} <mark style="color:yellow;">**Attention:**</mark>**&#x20;the Language configuration is set to&#x20;**<mark style="color:yellow;">**EN**</mark>**&#x20;by default because we don’t have other translation files. If you change it to another language without creating the file in the folder&#x20;**<kbd><mark style="color:yellow;">**cdev\_cOne > data > languages**<mark style="color:yellow;"></kbd>**, it will not work.**
{% endhint %}
{% endstep %}

{% step %}

### Setup Item and Images inside QB Inventory

**Step One**

Add images to `qb-inventory/html/images` Images are available in the `cdev_cOne > images` folder of this resource.

**Step Two**

Add item to `qb-core/shared/items.lua` like listed bellow.

```lua
-- Cdev cUno
conedeck = { name = 'conedeck', label = 'CcOne Deck', weight = 100, type = 'item', image = 'conedeck.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'cOne Deck' },
```

{% endstep %}

{% step %}

### Using the card cOne Deck in-game

<figure><img src="https://1004862655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPhIA9eCA4bwgx77hxx4i%2Fuploads%2F9viPlZX37ruUXQTA5mjZ%2FQB%20Inventory.gif?alt=media&amp;token=b44e5b73-0fde-469d-a241-1b918d2721f8" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
