Inventory

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

    • items

Running deploy

Execute command policesetup 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.

How to use our deployer system (automatic installation): Deployer!

Manually

ox_inventory

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

  2. Add these items:


 ['megaphone'] = {
    label = 'Megaphone',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['barrier'] = {
    label = 'Barricade',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['handcuffs'] = {
    label = 'Handcuffs',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['handcuffs_key'] = {
    label = 'Keys',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['spikes'] = {
    label = 'Spikes',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['speed_camera'] = {
    label = 'Speed camera',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['zipties'] = {
    label = 'Zip ties',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},

['paper_bag'] = {
    label = 'Paper Bag',
    weight = 100,
    stack = true,
    close = true,
    consume = 0,
},
  1. Copy images from rcore_police/assets/inventoryImages/ 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:

speed_camera               = { name = 'speed_camera', label = 'Speed camera', weight = 100, type = 'item', image = 'speed_camera.png', unique = false, useable = true, shouldClose = true, description = '' },
megaphone                  = { name = 'megaphone', label = 'Megaphone', weight = 100, type = 'item', image = 'megaphone.png', unique = false, useable = true, shouldClose = true, description = '' },
paper_bag                  = { name = 'paper_bag', label = 'Paper Bag', weight = 100, type = 'item', image = 'paper_bag.png', unique = false, useable = true, shouldClose = true, description = '' },
zipties                    = { name = 'zipties', label = 'Zip ties', weight = 100, type = 'item', image = 'zipties.png', unique = false, useable = true, shouldClose = true, description = '' },
  1. Copy images from rcore_police/assets/InventoryImages/ 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 - policesetup mf-inventory items.

es_extended (default esx inventory)

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

Last updated

Was this helpful?