Backpack System [QB]
Buy This Item On Fivemmshop Price Only $3
NoPixel scripts , Qbcore scripts premium , backpack script fivem
Get your Fivem EUP | Fivem Scripts | Fivem Mods | Fivem MLO | Fivem maps | Fivem Jobs | esx scripts | qbus scripts | NoPixel Scripts | VRP Scripts | Standalone Scripts | Discord bots | Fivem anticheats | Fivem launchers | Fivem eup | Fivem clothes | Fivem vehicles | fivem cars | fivem full server | nopixel maps | nopixel mlo | nopixel server | fivem store | fivem shop
For Buy this Iteam Click : Buy Backpack System [QB]
Key Features
- players can carry more materials in their inventory
- backpack props on the player’s back or hands
- blacklisted items
- opening/closing animation and duration
- locking system for backpacks
- players can not use backpacks if they are not on their Hotbar
- weight affects player’s movement speed
- no backpack in backpack exploit
- How to Install
- step0: Add images inside
inventoryimages
toqb-inventory/html/images
- step1: Add Below code to
qb-core/shared/items.lua
["backpack1"] = {
["name"] = "backpack1",
["label"] = "Backpack 1",
["weight"] = 10000,
["type"] = "item",
["image"] = "backpack_girl.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Backpack"
},
["backpack2"] = {
["name"] = "backpack2",
["label"] = "Backpack 2",
["weight"] = 10000,
["type"] = "item",
["image"] = "backpack_boy.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Backpack"
},
["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"] = 10000,
["type"] = "item",
["image"] = "paramedic_bag.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Paramedic bag"
},
- step2 (important): fix for exploit (backpack in backpack)
- 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('keep-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
- step3 (optional): add backpackshop
- open ‘qb-shops/config.lua’
- add new ‘products’ to ‘Config.Products’
["backpackshop"] = {
[1] = {
name = "backpack1",
price = 5,
amount = 750,
info = {},
type = "item",
slot = 1,
},
[2] = {
name = "backpack2",
price = 2500,
amount = 5,
info = {},
type = "item",
slot = 2,
},
[3] = {
name = "briefcase",
price = 2500,
amount = 5,
info = {},
type = "item",
slot = 3,
},
[4] = {
name = "paramedicbag",
price = 5000,
amount = 5,
info = {},
type = "item",
slot = 4,
},
},
- now add new shop to ‘Config.Locations’
["backpackshop"] = {
["label"] = "24/7 Backpackshop",
["coords"] = vector4(-135.68, 6199.79, 32.38, 64.55),
["ped"] = 'mp_m_waremech_01',
["scenario"] = "WORLD_HUMAN_CLIPBOARD",
["radius"] = 1.5,
["targetIcon"] = "fas fa-shopping-basket",
["targetLabel"] = "Open Shop",
["products"] = Config.Products["backpackshop"],
["showblip"] = true,
["blipsprite"] = 440,
["blipcolor"] = 0
},
0 Comments