Put this in qb-inventory/server/commands.lua where the /giveitem command is at around line 32 (looks like this: )
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>`;