Cost

Utilises Math.AddSeparator

Arguments

Label
Explained
Type
Example

amount

number

10000

reversed

Sets the $ sign after the string

boolean

false (default)

Examples

local value = 10000

-- Rejected
print("$ "..Math.AddSeparator(10000)) -- $ 10,000

-- Approved
print(Math.Cost(10000)) -- $ 10,000
print(Math.Cost(10000, true)) -- 10,000 $

-- Use the reversed argument when only neccessary, (having arabic text along side the cost in warmenu ONLY, in NUI do not reverse)

Last updated