Add an export to check if the user can carry an amount of given items.
Usage :
local cancarry = exports['qb-inventory']:CanCarryItem(src,item,amount)
if not cancarry then TriggerClientEvent("QBCore:Notify", src, "Not enough room in inventory", "error") return end
This way you know if the player can carry an item before giving it to the user.
Checklist
[X ] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
Description
Add an export to check if the user can carry an amount of given items. Usage :
This way you know if the player can carry an item before giving it to the user.
Checklist