Backpack
Dependencies
- qb-core
 - qb-inventory
 - progressbar
 
Installation
Place the folder "drp-backpack" in your drp folder if drp folder in not available create one or you can just put it in your resources folder.
Add
ensure drp-backpackin yourserver.cfgif not using drp folder then juststart drp-backpackAdd the item to your items.lua(Available in qb-core/shared/items):
- Add Below code to 
qb-core/shared/items.lua 
- Add Below code to 
 
    --drp backpack
    ["bag_small"] = {["name"] = "bag_small",            ["label"] = "Small Bag",            ["weight"] = 10000,         ["type"] = "item",          ["image"] = "bag_small.png",            ["unique"] = true,          ["useable"] = true,         ["shouldClose"] = true,         ["combinable"] = nil,           ["description"] = "Backpack Small"},
    ["bag_large"] = {["name"] = "bag_large",            ["label"] = "Large Bag",            ["weight"] = 20000,         ["type"] = "item",          ["image"] = "bag_large.png",            ["unique"] = true,          ["useable"] = true,         ["shouldClose"] = true,         ["combinable"] = nil,           ["description"] = "Backpack Large"},
    ["briefcase"] = {["name"] = "briefcase",            ["label"] = "Briefcase",            ["weight"] = 10000,         ["type"] = "item",          ["image"] = "briefcase.png",            ["unique"] = true,          ["useable"] = true,         ["shouldClose"] = true,         ["combinable"] = nil,           ["description"] = "Briefcase"},
    ["paramedicbag"] = {["name"] = "paramedicbag",          ["label"] = "Paramedic bag",            ["weight"] = 5000,          ["type"] = "item",          ["image"] = "paramedic_bag.png",            ["unique"] = true,          ["useable"] = true,         ["shouldClose"] = true,         ["combinable"] = nil,           ["description"] = "Paramedic bag"},
     -- Used to lockpick the briefcase
    ["briefcaselockpicker"] = {["name"] = "briefcaselockpicker",            ["label"] = "Briefcase Lockpicker",         ["weight"] = 500,           ["type"] = "item",          ["image"] = "baglockpick.png",          ["unique"] = false,         ["useable"] = true,         ["shouldClose"] = true,         ["combinable"] = nil,           ["description"] = "Briefcase Lockpicker"},
    --drp end
- (important): fix for exploits
- open qb-inventory/server/main.lua
 - find this event 'inventory:server:SaveInventory'
 - find 'elseif type == "stash" then' it should look like this:
 
 
elseif type == "stash" then
     SaveStashItems(id, Stashes[id].items)
elseif type == "drop" then
- change code inside it to look like this
 
elseif type == "stash" then
     local indexstart, indexend = string.find(id, 'Backpack_')
     if indexstart and indexend then
          TriggerEvent('drp-backpack:server:saveBackpack', source, id, Stashes[id].items, function(close)
               Stashes[id].isOpen = close
          end)
          return
     end
     SaveStashItems(id, Stashes[id].items)
elseif type == "drop" then
To add backpack shops in your server
open 'qb-shops/config.lua' and paste the below codes
["backpack"] = {
     [1] = {
          name = "bag_small",
          price = 1000, -- Change this according to you
          amount = 5, -- Change this according to you
          info = {},
          type = "item",
          slot = 1,
     },
     [2] = {
          name = "bag_large",
          price = 2500,
          amount = 5,
          info = {},
          type = "item",
          slot = 2,
     },
     [3] = {
          name = "briefcase",
          price = 5000,
          amount = 5,
          info = {},
          type = "item",
          slot = 3,
     },
     [4] = {
          name = "paramedicbag",
          price = 1000,
          amount = 5,
          info = {},
          type = "item",
          slot = 4,
     },
},
- now add new shop to 'Config.Locations'
 
    ["backpackshop"] = {
        ["label"] = "Backpack Shop", -- Change this according to you
        ["coords"] = vector4(-805.73, -594.92, 30.28, 239.87), -- Change this according to you
        ["ped"] = 'mp_m_waremech_01',
        ["scenario"] = "WORLD_HUMAN_CLIPBOARD",
        ["radius"] = 1.5,
        ["targetIcon"] = "fas fa-shopping-basket",
        ["targetLabel"] = "Backpack Shop", -- Change this according to you
        ["products"] = Config.Products["backpack"],
        ["showblip"] = true,
        ["blipsprite"] = 408,
        ["blipscale"] = 0.6,
        ["blipcolor"] = 0,
        ["delivery"] = vector4(-804.31, -595.84, 30.28, 63.48) -- change this according to you
    },