Long time, I’ve been out of the loop for quite a while. I have come back to FiveM and am having a blast configuring and planning my city.
I’m having an issue with the QB-Weed script that comes with a QB-Core fresh install by default. I’ve looked for free alternatives but have not found one yet. I’ve decided to just work with the default QB-Weed. The first issue I’ve found is that seeds are not being removed from player inventory while planting. Any help with this issue would be truly appreciated.
it’s trying to remove the seed but all items are added to items.lua. I think the code needs updated. I’ve looked through the script and it seems like the error is here:
local src = source
local Player = QBCore.Functions.GetPlayer(src)
exports['qb-inventory']:RemoveItem(src, seed, 1, itemslot, 'qb-weed:server:removeSeed')
end)```