Skip to content

ESX.Math.GroupDigits

1
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

1
2
3
4
local value = 5555
local valueGrouped = ESX.Math.GroupDigits(5555)

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