# 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`.


---

# 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://documentation.rcore.cz/paid-resources/rcore_prison/v1/inventory.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.
