Hey i just installed a the printer script into my test server. i tried to print a card but i got this error and don't give me any item:
The error line is:
if amount < exports.ox_inventory:CanCarryAmount(source, item) then
The else part of the code is:
elseif Config.Inv == 'ox' then
if amount < exports.ox_inventory:CanCarryAmount(source, item) then
if exports.ox_inventory:RemoveItem(source, "cash", amount * Config.PrintCost[item]) then
exports.ox_inventory:AddItem(source, item, amount, info)
else
QBCore.Functions.Notify(source, "Not Enough Money", "error")
end
else
QBCore.Functions.Notify(source, "Cannot carry amount", "error")
end
end
the same think happend and for books. any idea?