Merge pull request #1 from ElPumpo/master

Fixed exploits
This commit is contained in:
Don
2018-03-07 22:07:10 -08:00
committed by GitHub
+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)