qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
50 stars 376 forks source link

Fixed dupe item bug using decimal quantities #296

Closed nzkfc closed 2 years ago

nzkfc commented 2 years ago

Describe Pull request If you have an item in your inventory and you change the qty to 0.0000001 or similar, then drop the item, you duplicate the item.

Questions (please complete the following information):

Not 100% sure if this is the best way to fix it, however it simply stops you from entering a qty starting with 0 and only lets you add numbers 0-9.