From Official DarkRP Wiki
Revision as of 14:24, 31 October 2015 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Function name DarkRP.formatMoney(number amount)
Format a number as a money value. Includes currency symbol.
Returns: string money
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=]DarkRP.formatMoney[/url][/b]

Function parameters

  1. amount (number)
  2. The money to format, e.g. 100000.

Function return values

  1. money (string)
  2. The money as a nice string, e.g. "$100,000".