diff --git a/[core]/es_extended/shared/functions.lua b/[core]/es_extended/shared/functions.lua index f04d7595a..1c9616ca7 100644 --- a/[core]/es_extended/shared/functions.lua +++ b/[core]/es_extended/shared/functions.lua @@ -23,13 +23,6 @@ function ESX.GetConfig() return Config end ----@param value any ----@param numDecimalPlaces? number ----@return number -function ESX.Round(value, numDecimalPlaces) - return ESX.Math.Round(value, numDecimalPlaces) -end - ---@param value string ---@param ... any ---@return boolean, string? diff --git a/[core]/es_extended/shared/modules/math.lua b/[core]/es_extended/shared/modules/math.lua index 8967c6654..e47ab6873 100644 --- a/[core]/es_extended/shared/modules/math.lua +++ b/[core]/es_extended/shared/modules/math.lua @@ -12,6 +12,8 @@ function ESX.Math.Round(value, numDecimalPlaces) end end +ESX.Round = ESX.Math.Round + -- credit http://richard.warburton.it ---@param value number ---@return string