mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
prevent sending negativ bill
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user