Fixed float values and decimals

This commit is contained in:
ElPumpo
2018-03-07 22:43:38 +01:00
parent f02aa28698
commit 518dc6cf05
+4 -1
View File
@@ -79,9 +79,12 @@ Citizen.CreateThread(function()
local menu = ESX.UI.Menu.GetOpened(MenuType, data._namespace, data._name)
if menu.submit ~= nil then
if(type(data.value) == "number") then
data.value = math.floor(tonumber(data.value))
end
menu.submit(data, menu)
end
cb('OK')
end)