Fixed trim error

This commit is contained in:
ElPumpo
2019-01-06 18:55:46 +01:00
parent 2ac03e534e
commit 018d7050ac
+5 -1
View File
@@ -12,5 +12,9 @@ ESX.Math.GroupDigits = function(value)
end
ESX.Math.Trim = function(value)
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
if value then
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
else
return nil
end
end