prevent sending negativ bill

This commit is contained in:
KandaSoranyan
2018-01-29 17:49:14 +01:00
committed by GitHub
parent 7b908df3c0
commit 674ad72a34
+1 -1
View File
@@ -374,7 +374,7 @@ function OpenMobileMecanoActionsMenu()
},
function(data, menu)
local amount = tonumber(data.value)
if amount == nil then
if amount == nil or amount < 0 then
ESX.ShowNotification(_U('amount_invalid'))
else
menu.close()