Pug Development
  • ๐Ÿ‘‹Welcome To Pug Development
    • ๐Ÿ“ŒInformation
  • ๐Ÿ““Scripts
    • ๐Ÿ’ŽRobbery Creator
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • Mini Games
      • ๐Ÿ’กThings to know
        • ๐ŸŽจHow To Use
        • ๐ŸŽฎCustom Mini Games
        • ๐Ÿ’ฃCreate Explosion
        • ๐Ÿ“‘Tab Settings
        • ๐Ÿ“ฃBank Truck & ATM Alert
        • ๐Ÿ“ฑCustom Keypad
        • ๐Ÿ’ฑMove Steps Around
        • ๐Ÿ‘ปMake Props Disappear When Looted
        • ๐ŸคนRemove Kill Screen Effect
        • ๐ŸŽPreset Heist Progression
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ’ผBusiness Creator
      • ๐Ÿ“Installation
      • ๐Ÿ’กThings to know
        • ๐Ÿ”—Linking Jobs To The Menu
        • ๐Ÿ“ƒOpen Menu
        • ๐Ÿ”›Criminal crafting
        • ๐Ÿ›ฐ๏ธCreated Items
      • โ“FAQ
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ”ซPaint Ball
      • ๐Ÿ“Installation
        • ๐Ÿ‚ox_inventory
        • ๐ŸฆฅDispatch/Shots Fired
        • โŒqb-anticheat
      • ๐Ÿ“œDependency & Support
      • ๐Ÿ’กThings to know
        • ๐Ÿ—บ๏ธMap Making Tutorial
        • ๐Ÿ‘šSet Team Outfits
        • ๐Ÿ“…Scoreboard
        • ๐Ÿ”Surrender
    • ๐Ÿ› ๏ธRepo Job
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ’‰Coke Business
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐ŸŽฃFishing
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • ๐ŸŸFishing Lure
      • ๐Ÿ“œDependency & Support
      • ๐Ÿ’กThings to know
        • โ†—๏ธProgression
        • ๐Ÿ’ฏReputation
    • ๐Ÿ”ซWeapon Sling
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ†Battle Royale
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • โ˜๏ธWeather Sync
        • ๐Ÿ‚ox_inventory
        • ๐ŸฆฅDispatch/Shots Fired
        • โŒqb-anticheat
      • ๐Ÿ“œDependency & Support
    • ๐Ÿš˜Car Chopping
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
      • ๐Ÿ“œDependency & Support
Powered by GitBook
On this page
  • QB-INVENTORY ONLY
  • QB-INVENTORY & PS-INVENTORY ONLY
  • OLD QB-INVENTORY ONLY
  • PS-INVENTORY ONLY
  1. Scripts
  2. Fishing
  3. Installation

Fishing Lure

PreviousOx ItemsNextDependency & Support

Last updated 4 months ago

QB-INVENTORY ONLY

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>`;

PS-INVENTORY ONLY

} 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>"
    );
elseif itemData["name"] == "fishinglure" then
    info.uses = 1000
elseif itemData["name"] == "fishinglure2" then
    info.uses = 1500

put this in ps-inventory/html/js/app.js at around line 630 under the markedbills (looks like this: )

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/ce46f3cb14ea581884507ae53867dc29
https://gyazo.com/3fa6991e8784917cfda0c6ec9376e52d
https://gyazo.com/89360e5ab146413def3c2f0360510449