Skip to content

Commit

Permalink
refactor(es_extended/shared): move ESX.Round to its correct module
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios committed Dec 15, 2024
1 parent 4b046be commit e41082c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions [core]/es_extended/shared/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 2 additions & 0 deletions [core]/es_extended/shared/modules/math.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e41082c

Please sign in to comment.