> 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/inventory.md).

# Inventory items

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

There are two ways of setting up inventory items. You can use the integrated **Asset Deployer** that automatically inserts items into your database (for mf-inventory and es\_extended), or you can do all necessary edits **Manually**.

* Item definitions can be found at `rcore_prison/inventory_items.lua`
* Item images are located in `rcore_prison/assets/inventoryImages/`

## Asset Deployer

The Asset Deployer automatically inserts SQL items into your database.

### Available deploys:

* Resource: **mf-inventory**
  * items
* Resource: **es\_extended**
  * 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.

## Manually

### ox\_inventory

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

```lua
['sludgie'] = {
    name = 'sludgie',
    label = 'Sludgie',
    weight = 350,
    client = {
        status = { thirst = 200000 },
        anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
        prop = { model = 'prop_ld_can_01', pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
        usetime = 2500,
        notification = 'You quenched your thirst with a Coffee'
    }
},
['ecola_light'] = {
    name = 'ecola_light',
    label = 'Ecola light',
    weight = 350,
    client = {
        status = { thirst = 200000 },
        anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
        prop = { model = 'prop_ld_can_01', pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
        usetime = 2500,
        notification = 'You quenched your thirst with a Coffee'
    }
},
['ecola'] = {
    name = 'ecola',
    label = 'Ecola',
    weight = 350,
    client = {
        status = { thirst = 200000 },
        anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
        prop = { model = 'prop_ld_can_01', pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
        usetime = 2500,
        notification = 'You quenched your thirst with a Coffee'
    }
},
['coffee'] = {
    name = 'coffee',
    label = 'Coffee',
    weight = 350,
    client = {
        status = { thirst = 200000 },
        anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
        prop = { model = 'prop_ld_can_01', pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
        usetime = 2500,
        notification = 'You quenched your thirst with a Coffee'
    }
},
['fries'] = {
    name = 'fries',
    label = 'Fries',
    weight = 350,
    client = {
        status = { hunger = 200000 },
        anim = { dict = 'mp_player_inteat@burger', clip = 'mp_player_int_eat_burger_fp' },
        prop = { model = 'prop_food_cb_chips', pos = vec3(0.02, 0.02, -0.02), rot = vec3(0.0, 0.0, 0.0) },
        usetime = 2500,
        notification = 'You eat Fries'
    }
},
['pizza_ham'] = {
    name = 'pizza_ham',
    label = 'Pizza Ham',
    weight = 350,
    client = {
        status = { hunger = 200000 },
        anim = { dict = 'mp_player_inteat@burger', clip = 'mp_player_int_eat_burger_fp' },
        prop = { model = 'prop_food_cb_chips', pos = vec3(0.02, 0.02, -0.02), rot = vec3(0.0, 0.0, 0.0) },
        usetime = 2500,
        notification = 'You eat Fries'
    }
},
['chips'] = {
    name = 'chips',
    label = 'Chips',
    weight = 350,
    client = {
        status = { hunger = 200000 },
        anim = { dict = 'mp_player_inteat@burger', clip = 'mp_player_int_eat_burger_fp' },
        prop = { model = 'prop_food_cb_chips', pos = vec3(0.02, 0.02, -0.02), rot = vec3(0.0, 0.0, 0.0) },
        usetime = 2500,
        notification = 'You eat Chips'
    }
},
['donut'] = {
    name = 'donut',
    label = 'Donut',
    weight = 350,
    client = {
        status = { hunger = 200000 },
        anim = { dict = 'mp_player_inteat@burger', clip = 'mp_player_int_eat_burger_fp' },
        prop = { model = 'prop_amb_donut', pos = vec3(0.02, 0.02, -0.02), rot = vec3(0.0, 0.0, 0.0) },
        usetime = 2500,
        notification = 'You eat Donut'
    }
},
['wire_cutter'] = {
    name = 'wire_cutter',
    label = 'cutter',
    weight = 100,
    stack = true,
    consume = 0,
    close = true,
},
['cigarrete'] = {
    name = 'cigarrete',
    label = 'Cigarrete',
    weight = 100,
    stack = true,
    consume = 0,
    close = true,
},
['screwdriver'] = {
    name = 'screwdriver',
    label = 'Screw Driver',
    weight = 100,
    stack = true,
    consume = 0,
    close = true,
},
```

3. Copy images from `rcore_prison/assets/inventoryImages/` 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
['sprunk'] = {
    name = 'sprunk',
    label = 'Sprunk',
    weight = 100,
    type = 'item',
    image = 'sprunk.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['sludgie'] = {
    name = 'sludgie',
    label = 'Sludgie',
    weight = 100,
    type = 'item',
    image = 'sludgie.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['ecola_light'] = {
    name = 'ecola_light',
    label = 'Ecola light',
    weight = 100,
    type = 'item',
    image = 'ecola_light.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['ecola'] = {
    name = 'ecola',
    label = 'Ecola',
    weight = 100,
    type = 'item',
    image = 'ecola.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['coffee'] = {
    name = 'coffee',
    label = 'Coffee',
    weight = 100,
    type = 'item',
    image = 'ecola.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['water'] = {
    name = 'water',
    label = 'Water',
    weight = 100,
    type = 'item',
    image = 'water.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['fries'] = {
    name = 'fries',
    label = 'Fries',
    weight = 100,
    type = 'item',
    image = 'fries.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['pizza_ham'] = {
    name = 'pizza_ham',
    label = 'Pizza Ham',
    weight = 100,
    type = 'item',
    image = 'pizza_ham.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['chips'] = {
    name = 'chips',
    label = 'Chips',
    weight = 100,
    type = 'item',
    image = 'chips.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['donut'] = {
    name = 'donut',
    label = 'Donut',
    weight = 100,
    type = 'item',
    image = 'donut.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['cigarrete'] = {
    name = 'cigarrete',
    label = 'Cigarrete',
    weight = 100,
    type = 'item',
    image = 'cigarrete.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['wire_cutter'] = {
    name = 'wire_cutter',
    label = 'Wire cutter',
    weight = 100,
    type = 'item',
    image = 'wire_cutter.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
['screwdriver'] = {
    name = 'screwdriver',
    label = 'Screw Driver',
    weight = 100,
    type = 'item',
    image = 'screwdriver.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
},
```

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

### mf-inventory

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

### es\_extended (default esx inventory)

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