Es_extended Script Error with ESX_shops

Hello

When im trying to buy something from esx_shops, this script error shows up:

SCRIPT ERROR: @es_extended/common/modules/math.lua:4: bad argument #2 to ‘format’ (number expected, got nil)

math.lua looks like this:

ESX.Math = {}

ESX.Math.Round = function(value, numDecimalPlaces)
return tonumber(string.format("%." … (numDecimalPlaces or 0) … “f”, value))
end

– credit http://richard.warburton.it
ESX.Math.GroupDigits = function(value)
local left,num,right = string.match(value,’^([^%d]%d)(%d)(.-)$’)

return left..(num:reverse():gsub('(%d%d%d)','%1' .. _U('locale_digit_grouping_symbol')):reverse())..right

end

ESX.Math.Trim = function(value)
if value then
return (string.gsub(value, “^%s*(.-)%s*$”, “%1”))
else
return nil
end
end

everything is integrated into the DB

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.