๐Fishing Lure
QB-INVENTORY ONLY
Put this in qb-inventory/server/commands.lua where the /giveitem command is at around line 32 (looks like this: https://gyazo.com/ce46f3cb14ea581884507ae53867dc29)
elseif itemData["name"] == "fishinglure" then
info.uses = 1000
elseif itemData["name"] == "fishinglure2" then
info.uses = 1500
QB-INVENTORY & PS-INVENTORY ONLY
Replace this function in qb-inventory/server/functions.lua at around line 23
local function SetupShopItems(shopItems)
local items = {}
if shopItems and next(shopItems) then
for _, item in pairs(shopItems) do
local itemInfo = QBCore.Shared.Items[item.name:lower()]
if item.name:lower() == "fishinglure" then
item.info.uses = 1000
elseif item.name:lower() == "fishinglure2" then
item.info.uses = 1500
end
if itemInfo then
items[item.slot] = {
name = itemInfo['name'],
amount = tonumber(item.amount),
info = item.info or '',
label = itemInfo['label'],
description = itemInfo['description'] or '',
weight = itemInfo['weight'],
type = itemInfo['type'],
unique = itemInfo['unique'],
useable = itemInfo['useable'],
price = item.price,
image = itemInfo['image'],
slot = item.slot,
}
end
end
end
return items
end
OLD QB-INVENTORY ONLY
put this in qb-inventory/html/js/app.js at around line 396
case "fishinglure":
return `<p><strong>Uses: </strong><span>${itemData.info.uses}</span></p>`;
case "fishinglure2":
return `<p><strong>Uses: </strong><span>${itemData.info.uses}</span></p>`;
PS-INVENTORY ONLY
put this in ps-inventory/html/js/app.js at around line 630 under the markedbills (looks like this: https://gyazo.com/3fa6991e8784917cfda0c6ec9376e52d)
} else if (itemData.name == "fishinglure") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Uses: </strong><span>" +
itemData.info.uses +
"</span></p><p style=\"font-size:11px\"><b>Weight: </b>" + itemData.weight + " | <b>Amount: </b> " + itemData.amount + " | <b>Quality: </b> " + "<a style=\"font-size:11px;color:green\">" + Math.floor(itemData.info.quality) + "</a>"
);
} else if (itemData.name == "fishinglure2") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Uses: </strong><span>" +
itemData.info.uses +
"</span></p><p style=\"font-size:11px\"><b>Weight: </b>" + itemData.weight + " | <b>Amount: </b> " + itemData.amount + " | <b>Quality: </b> " + "<a style=\"font-size:11px;color:green\">" + Math.floor(itemData.info.quality) + "</a>"
);
Put this in ps-inventory/server/main.lua where the /giveitem command is at around line 2409 under the harness. (looks like this https://gyazo.com/89360e5ab146413def3c2f0360510449)
elseif itemData["name"] == "fishinglure" then
info.uses = 1000
elseif itemData["name"] == "fishinglure2" then
info.uses = 1500
Last updated