Merge pull request #9 from KandaSoranyan/patch-1

prevent sending negativ bill
This commit is contained in:
Don
2018-02-07 19:03:23 -08:00
committed by GitHub
+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()