mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +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)
|
local qty = tonumber(data.value)
|
||||||
if not qty or qty <= 0 or qty > maxCount then
|
if not qty or qty <= 0 or qty > maxCount then
|
||||||
ESX.ShowNotification(TranslateCap("amount_invalid"))
|
ESX.ShowNotification(TranslateCap("amount_invalid"))
|
||||||
p:resolve(nil)
|
|
||||||
else
|
else
|
||||||
menu.close()
|
menu.close()
|
||||||
p:resolve(qty)
|
p:resolve(qty)
|
||||||
|
|||||||
Reference in New Issue
Block a user