mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 23:01:26 +00:00
Merge pull request #1836 from seltonmt012/fix/inventory-quantity-dialog
fix(esx_inventory): let the quantity dialog accept a corrected amount
This commit is contained in:
@@ -146,7 +146,6 @@ local function openQuantityDialog(title, maxCount)
|
||||
local qty = tonumber(data.value)
|
||||
if not qty or qty <= 0 or qty > maxCount then
|
||||
ESX.ShowNotification(TranslateCap("amount_invalid"))
|
||||
p:resolve(nil)
|
||||
else
|
||||
menu.close()
|
||||
p:resolve(qty)
|
||||
|
||||
Reference in New Issue
Block a user