> 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-tarot/installation-guide-qbcore-inventory.md).

# Installation Guide QBCore 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\_tarot.pack.zip</mark>
  {% endstep %}

{% step %}

### Extract the zip.

➤ Step 1: Extract the contents of <mark style="color:yellow;">cdev\_tarot.pack.zip</mark> the folder extact should be the name <kbd><mark style="color:red;">cdev\_tarot<mark style="color:red;"></kbd>.

{% 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%2FzW00Un3YZpOvl0ouhbpF%2Fimage.png?alt=media&amp;token=660d9b2d-e96e-4470-bd84-2d0a5cf4fa87" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Cdev\_tarot Configuration

🚩 <mark style="color:red;">**To work correctly,**</mark> <mark style="color:yellow;">cdev\_tarot</mark> <mark style="color:red;">**requires the proper configuration of the inventory in the**</mark> **`config.lua`** <mark style="color:red;">**file located in the**</mark> **`cdev_tarot > 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%2FYGOmc43VTvJUvgwwLxVE%2Fimage.png?alt=media&amp;token=ebd7a010-93b1-4df1-bd1d-a859e261b71c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Setup Item and Images inside QBCore Inventory

**Step One**

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

**Step Two**

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

```lua
-- Cdev Tarot
tarotminordeck               = { name = 'tarotminordeck', label = 'Tarot Minor Deck', weight = 100, type = 'item', image = 'tarotminordeck.png', unique = false, useable = true, shouldClose = true, description = 'Tarot Deck' },
tarotmajordeck               = { name = 'tarotmajordeck', label = 'Tarot Major Deck', weight = 100, type = 'item', image = 'tarotmajordeck.png', unique = false, useable = true, shouldClose = true, description = 'Tarot Deck' },
tarotmixeddeck               = { name = 'tarotmixeddeck', label = 'Tarot Mixed Deck', weight = 100, type = 'item', image = 'tarotmixeddeck.png', unique = false, useable = true, shouldClose = true, description = 'Tarot Deck' },
```

{% endstep %}
{% endstepper %}
