Closed bamablood94 closed 2 years ago
Alright, this sould be a fresh branch with just the one change
tbh could've just changed the
if amount > 0 then
to
if amount and amount > 0 then
This was actually already fixed in:
https://github.com/qbcore-framework/qb-inventory/commit/2e042e69e67f5fe91fc8bf094adcdf8a05900e26
This should be closed..
Describe Pull request Fixes Nil Value given in console after using /giveitem command with a missing 3rd arguement.
When you do /giveitem id item amount, if you dont specify the amount of items then you get a nil value error in console/chat. This fixes that
Questions (please complete the following information):