The qb-duffelbag script introduces three distinct items – wallets, duffel bags, and briefcases – providing players with a comprehensive storage solution.
- Flexible Storage: Choose between wallets, duffel bags, or briefcases to store your personal documents.
- Customizable Slots: Adjust the number of slots according to your preference to organize your documents efficiently.
- Image Integration: Drag images from
qb-duffelbag/imagesintolj-inventoryscript'shtml/images. - Modify Items Configuration: In
qb-core/shared/items.lua, add the following items:
wallet = { name = "wallet", label = "Wallet", weight = 500, type = "item", image = "wallet.png", unique = true, useable = true, shouldClose = false, combinable = nil, description = "" },
duffelbag = { name = "duffelbag", label = "Duffelbag", weight = 500, type = "item", image = "duffelbag.png", unique = true, useable = true, shouldClose = false, combinable = nil, description = "" },
briefcase = { name = "briefcase", label = "Briefcase", weight = 500, type = "item", image = "briefcase.png", unique = true, useable = true, shouldClose = false, combinable = nil, description = "" },- Update UI: Find the
stickynotesection inlj-inventory/lj/app.jsand paste the following code snippet below it:
else if (itemData.name == "wallet") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Wallet identification number: </strong><span>' + itemData.info.walletid);
} else if (itemData.name == "duffelbag") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Wallet identification number: </strong><span>' + itemData.info.duffelbagid);
} else if (itemData.name == "briefcase") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Wallet identification number: </strong><span>' + itemData.info.briefcaseid); - Modify Server Logic: In
lj-inventory/server/main.lua, find the section for handlingItemshopand insert the following code snippet after thecashcondition:
elseif itemData['name'] == 'wallet' then
info.walletid = math.random(11111,99999)
elseif itemData['name'] == 'duffelbag' then
info.duffelbagid = math.random(11111,99999)
elseif itemData['name'] == 'briefcase' then
info.briefcaseid = math.random(11111,99999)- Additional Logic: In the same
lj-inventory/server/main.luafile, find the section for handlingmarkedbillsand insert the following code snippet after theelseifcondition:
if itemData.name == 'billetera' then itemData.info.walletid = math.random(11111,99999) end -- Wallet item
if itemData.name == 'duffelbag' then itemData.info.duffelbag = math.random(11111,99999) end -- Duffelbag item
if itemData.name == 'briefcase' then itemData.info.briefcase = math.random(11111,99999) end -- Briefcase item- Adding items to shop: Navigate to
qb-shops/configand add the code below to any shop you want.
{name = 'wallet', price = 250, amount = 50, info = {}, type = 'item'},
{name = 'duffelbag', price = 300, amount = 50, info = {}, type = 'item'},
{name = 'briefcase', price = 500, amount = 50, info = {}, type = 'item'},For any issues, suggestions, or custom requests, join our Discord community.
-
Our Discord: https://discord.gg/SyNGm3eXmP
-
Project Link: https://github.com/SteffWS/qb-duffelbag