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:

  • 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

    • Manifest-Client

    • Manifest-Server

    • ClientAPI

    • ServerAPI

Running deploy

Execute command bannersetup <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:

    ['paper'] = {
        name = 'paper',
        label = 'Paper',
        weight = 100,
        stack = true,
        close = true,
        consume = 0,
    },
    ['banner'] = {
        name = 'banner',
        label = 'Banner',
        weight = 100,
        stack = true,
        close = true,
        consume = 0,
        export = 'rcore_banners.banner'
    },
    ['banner_remover'] = {
        name = 'banner_remover',
        label = 'Banner Remover',
        weight = 150,
        stack = true,
        close = true,
        consume = 0,
        export = 'rcore_banners.banner_remover'
    },
  1. Copy images from rcore_banners/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

  1. Open qb-core/shared/items.lua / qs-inventory/shared/items.lua file.

  2. Add these items:

     {
        name = 'banner',
        label = 'Banner',
        weight = 100,
        type = 'item',
        image = 'banner.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
    },
    {
        name = 'banner_remover',
        label = 'Banner remover',
        weight = 100,
        type = 'item',
        image = 'banner_remover.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
    },
    {
        name = 'paper',
        label = 'Paper',
        weight = 100,
        type = 'item',
        image = 'banner_remover.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
    },
  1. Copy images from rcore_banners/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!

mf-inventory

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

es_extended (default esx inventory)

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

Last updated