# Inventory Items

{% hint style="warning" %}
Requires properly setup config for inventory from [Installation](/paid-resources/rcore_doorlock/installation.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:

#### Items

* ox\_inventory
* qs-inventory
* qb-inventory
* mf-inventory
* ps-inventory
* lj-inventory
* core\_inventory
* inventory *(chezza)*
* codem-inventory
* origen\_inventory
* tgiann-inventory

#### Items images

* ox\_inventory
* qs-inventory
* qb-inventory
* aj-inventory
* lj-inventory
* ps-inventory

### Running deploy

Execute command `dooorlockdeploy <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:

<figure><img src="/files/0wDo7G7INyPCFfmtSu9g" alt=""><figcaption><p>How it looks:</p></figcaption></figure>

## Manually

{% hint style="danger" %}
We recommend using Asset Deployer instead of adding items manually. Asset Deployer will do all the work for you and make sure the installation is done correctly. Manually adding items can be erroneous and it is recommended to use it only in the most extreme cases where the deployer could not be used, such as a custom framework/inventory.
{% endhint %}

### ox\_inventory

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

```lua
    ['door_key'] = {
        name = 'door_key',
        label = 'Door key',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.door_key'
    },
    ['door_card'] = {
        name = 'door_card',
        label = 'Door card',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.door_card'
    },
    ['rd_hacking_device'] = {
        name = 'rd_hacking_device',
        label = 'Hacking device',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.rd_hacking_device'
    },
    ['rd_lockpick'] = {
        name = 'rd_lockpick',
        label = 'Lockpick',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.rd_lockpick'
    },
    ['rd_keychain'] = {
        label = 'Keychain',
        weight = 1,
        stack = false,
        close = true,
        consume = 0,
    },
    ['rd_breacher'] = {
        label = 'Breacher',
        weight = 100,
        stack = true,
        close = true,
        consume = 0,
    },
```

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

### ak47\_(qb\_)inventory

1. Open `ak47_(qb_)inventory/shared/items.lua` file.
2. Add these items:

```lua
     ["door_card"] = {
        name = "door_card",
        label = "Door card",
        weight = 100,
        type = "item",
        close = true,
        client = {
            TriggerEvent = 'rcore_doorlock.door_card',
        }
    },
    ["door_key"] = {
        name = "door_key",
        label = "Door key",
        weight = 100,
        type = "item",
        close = true,
        client = {
            TriggerEvent = 'rcore_doorlock.door_key',
        }
    },
    ["rd_hacking_device"] = {
        name = "rd_hacking_device",
        label = "Hacking device",
        weight = 100,
        type = "item",
        close = true,
        client = {
            TriggerEvent = 'rcore_doorlock.rd_hacking_device',
        }
    },
    ["rd_lockpick"] = {
        name = "rd_lockpick",
        label = "Lockpick",
        weight = 100,
        type = "item",
        close = true,
        client = {
            TriggerEvent = 'rcore_doorlock.rd_lockpick',
        }
    },
    ["rd_breacher"] = {
        name = "rd_breacher",
        label = "Breacher",
        weight = 100,
        type = "item",
        close = true,
        client = {
            TriggerEvent = 'rcore_doorlock.rd_breacher',
        }
    },
```

3. Copy images from `rcore_doorlock/assets/inventory_images/` to `ak47_(qb_)inventory/web/build/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, other

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

```lua
    ['door_key'] = {
        ['name'] = 'door_key',
        ['label'] = 'Door Key',
        ['weight'] = 100,
        ['type'] = 'item',
        ['image'] = 'door_key.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A regular key used to open a specific door.'
    },

    ['door_card'] = {
        ['name'] = 'door_card',
        ['label'] = 'Door Card',
        ['weight'] = 100,
        ['type'] = 'item',
        ['image'] = 'door_card.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A sophisticated device used for accessing secured doors.'
    },

    ['rd_hacking_device'] = {
        ['name'] = 'rd_hacking_device',
        ['label'] = 'Hacking Device',
        ['weight'] = 100,
        ['type'] = 'item',
        ['image'] = 'rd_hacking_device.png',
        ['unique'] = false,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A sophisticated device used for hacking security systems.'
    },

    ['rd_lockpick'] = {
        ['name'] = 'rd_lockpick',
        ['label'] = 'Lockpick',
        ['weight'] = 100,
        ['type'] = 'item',
        ['image'] = 'rd_lockpick.png',
        ['unique'] = false,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A lightweit item used for lockpicking doors.'
    },

    ['rd_breacher'] = {
        ['name'] = 'rd_breacher',
        ['label'] = 'Breacher',
        ['weight'] = 100,
        ['type'] = 'item',
        ['image'] = 'rd_breacher.png',
        ['unique'] = false,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A police breaching tool for doors.'
    },
```

3. Copy images from `rcore_doorlock/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!


---

# 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_doorlock/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.
