Inventory Items

Requires properly setup config for inventory from Installation!

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:

Manually

ox_inventory

  1. Open ox_inventory/data/items.lua file.

  2. Add these items:

    {
        name = 'door_key',
        label = 'Door key',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.door_key'
    },
    {
        name = 'door_card',
        label = 'Door card',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.door_card'
    },
    {
        name = 'hacking_device',
        label = 'Hacking device',
        weight = 100,
        stack = false,
        close = true,
        consume = 0,
        export = 'rcore_doorlock.hacking_device'
    }, 
  1. Copy images from rcore_doorlock/assets/inventory_images/ to ox_inventory/web/images/.

  2. 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:

     {
        ['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.'
    },
    {
        ['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 hacking security systems.'
    },
    {
        ['name'] = 'hacking_device',
        ['label'] = 'Hacking device',
        ['weight'] = 100,
        ['type'] = 'item',
        ['image'] = 'hacking_device.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A sophisticated device used for hacking security systems.'
    },
  1. Copy images from rcore_doorlock/assets/inventory_images/ to qb-inventory/html/images/ / qs-inventory/html/images/.

  2. Restart your server. Server need to be restarted for proper registration of usable items!

Last updated