I propose to replace the rod breakage system so that they lose strength every time you cast a rod, and not, as now, the chance of breakage if you fail.
I can also say that when fishing it is inconvenient to use a fishing rod every time; It would be better if the process was interrupted at the moment when it was not possible to catch a fish or the fishing rod broke.
Looks like you are using ox_inventory. If you added the items from this script into QBâs items.lua, ox inventory converted it automatically to the ox_inventory items.lua file upon server restart, which is the primary and ONLY items file that ox inventory gets its item data from. Do the fish items in your âresources\ox_inventory\data\items.luaâ file have weight attributes assigned to them? If so, that is where you would adjust it. Not qb-core/shared/items.lua.
Also, your inventory weight is very low. If youâre using ox inventory, you can add this to your server.cfg to adjust the max inventory weight âsetr inventory:weight 24000â or whatever number you want. The ox inventory github has all of the important installation instructions that go over this.
I know this is a late update, but you need to edit the code where the fish is added to you inventory to use the CanCarry export from Ox Inventory to make sure the player has the weight available to carry the newly acquired fish.
when u change a keybind it wont change even if you change it in the files if you dont delete your cache everytime u change a keybind and the script already started it saves it in the cache
If you want to fix that simple go to ox_inventory/modules/inventory/server.lua and add this line inside of the function Inventory.AddItem right under inv = Inventory(inv) --[[@as OxInventory]]
if (inv.weight + (item.weight*count)) > shared.playerweight then if inv.player then TriggerClientEvent(âox_lib:notifyâ, inv.player.source, { type = âerrorâ, description = âYour inventory does not have enought space!!â }) end return end
This snippet right here would fix every overweight issue in the ox_inventory.
So you wouldnât need to edit every server-side addItem function and include a CanCarryItem check.
hello, im using qbcore and ox_inventory, i cannot using the fishing rod on my inventory, i put it on hotbar also nothing happen, anyone know how to fix it? other thing doing fine i have try buying rod and bait then i trying to selling also, everything can do, the only problem is cannot begin the fishing process.
when adding this ingame and following the readme, none of the peds are appearing ingame, cant see any fishing zones. i can give myself fish and rods but they cant be used / cant fish at all.
To begin with, you need to add files to qb-core/shared/item from the lunar_fishing/install/QBCore.md folder. Also download the import.sql database. And upload images to your inventory. In order to fish, you need to buy a fishing rod and bait, then rent a boat and drive to the place marked on the map. And then take out the fishing rod and start fishing. The fishing rod does not work on the shore
For qb-inventory.To begin with, you need to add files to qb-core/shared/item from the lunar_fishing/install/QBCore.md folder. Also download the import.sql database. And upload images to your inventory. In order to fish, you need to buy a fishing rod and bait, then rent a boat and drive to the place marked on the map. And then take out the fishing rod and start fishing. The fishing rod does not work on the shore.