Skip to content

ESX.Math.GroupDigits

ESX.Math.GroupDigits(value)

This function groups numbers, making them easier to understand by humans. Used in most nofications when money is showed, for example when buying a new car at the vehicle shop.

ESX.Math.Round Example

local value = 5555
local valueGrouped = ESX.Math.GroupDigits(5555)

print(value, valueGrouped) -- returns 5555, 5,555