> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_prison/v1/inventory.md).

# Inventory

{% hint style="warning" %}
Requires properly setup config for inventory from [Installation](/paid-resources/rcore_prison/v1.md)!
{% endhint %}

There are two ways of setuping inventory items. You can use integrated **Asset Deployer** that edit proper server files automatically after executing command or you can do all necessary edits **Manually**.

## Asset Deployer

### Available deploys:

* Resource: **ox\_inventory**
  * items
  * items-images
* Resource: **qs-inventory**
  * items
  * items-images
* Resource: **qb-inventory**
  * items
  * items-images
* Resource: **aj-inventory**
  * items
  * items-images
* Resource: **lj-inventory**
  * items
  * items-images
* Resource: **ps-inventory**
  * items
  * items-images
* Resource: **mf-inventory**
  * items
* Resource: **es\_extended** (esx)
  * items

### Running deploy

Execute command `prisonsetup <deploy-resource> [name]` in **server console**, where `deploy-resource` is needed and represents resource from **Available Deploys** and `name` is optional *(if it's not filled, all deploys for resource will be deployed)* and represents specific deploy for resource.

Example:

## Manually

### ox\_inventory

1. Open `ox_inventory/data/items.lua` file.
2. Add these items:

```lua
OX_INVENTORY_ITEMS_DEPLOY = {
    {
        name = 'cigar',
        label = 'Cigar',
        weight = 10,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'sludgie',
        label = 'Sludgie',
        weight = 10,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'sprunk',
        label = 'Sprunk',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'ecola_light',
        label = 'Ecola light',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'coffee',
        label = 'Coffee',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'cigs_69brand',
        label = '69 Brand',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'cigs_cardiaque',
        label = 'Cardiaque',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'cigs_debonaireblue',
        label = 'Debonaire Blue',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'cigs_debonairegreen',
        label = 'Debonaire Green',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
    {
        name = 'cigs_redwood',
        label = 'Red Wood',
        weight = 50,
        stack = true,
        close = true,
        consume = 0,
    },
}
```

3. Copy images from `rcore_prison/assets/inventory_images/` to `ox_inventory/web/images/`.
4. Restart your server. Server need to be restarted for proper registration of usable items!

### qb-inventory / qs-inventory / aj-inventory / lj-inventory / ps-inventory

1. Open `qb-core/shared/items.lua` / `qs-inventory/shared/items.lua` file.
2. Add these items:

```lua
{
    {
        name = 'cigar',
        label = 'Cigar',
        weight = 0,
        type = 'item',
        image = 'cigar.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Cigar'
    },
    {
        name = 'sludgie',
        label = 'Sludgie',
        weight = 0,
        type = 'item',
        image = 'sludgie.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Sludgie'
    },
    {
        name = 'sprunk',
        label = 'Sprunk',
        weight = 0,
        type = 'item',
        image = 'sprunk.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Sprunk'
    },
    {
        name = 'ecola_light',
        label = 'Ecola light',
        weight = 0,
        type = 'item',
        image = 'ecola_light.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Sprunk'
    },
    {
        name = 'coffee',
        label = 'Coffee',
        weight = 0,
        type = 'item',
        image = 'coffee.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Coffee'
    },
    {
        name = 'cigs_69brand',
        label = '69 Brand',
        weight = 0,
        type = 'item',
        image = 'cigs_69brand.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Coffee'
    },
    {
        name = 'cigs_cardiaque',
        label = 'Cardiaque',
        weight = 0,
        type = 'item',
        image = 'cigs_cardiaque.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Coffee'
    },
    {
        name = 'cigs_debonaireblue',
        label = 'Debonaire Blue',
        weight = 0,
        type = 'item',
        image = 'cigs_debonaireblue.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Coffee'
    },
    {
        name = 'cigs_debonairegreen',
        label = 'Debonaire Green',
        weight = 0,
        type = 'item',
        image = 'cigs_debonairegreen.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Debonaire Green'
    },
    {
        name = 'cigs_redwood',
        label = 'Red Wood',
        weight = 0,
        type = 'item',
        image = 'cigs_redwood.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Red Wood',
    },
}
```

3. Copy images from `rcore_prison/assets/inventory_images/` to `qb-inventory/html/images/` / `qs-inventory/html/images/`.
4. Restart your server. Server need to be restarted for proper registration of usable items!

### es\_extended (default esx inventory)

1. Use asset deployer command, that insert SQL items to database - `prisonsetup es_extended items`.
