lia.currency
Helper library for managing currency.
Functions
get(amount)
Retrieves the formatted currency string based on the amount.
Parameters
-
amount
Integer
The amount of currency.
Returns
-
any
string The formatted currency string.
set(symbol, singular, plural)
Internal
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Sets the symbol, singular, and plural forms of the currency.
Parameters
-
symbol
String
The currency symbol.
-
singular
String
The singular form of the currency name.
-
plural
String
The plural form of the currency name.
spawn(pos, amount, angle)
Spawns a currency entity at the specified position with the given amount and angle. This function is only available on the server.
Parameters
-
pos
Vector
The position where the currency entity will be spawned.
-
amount
Integer
The amount of currency for the spawned entity.
-
angle
Angle
The angle of the spawned entity. Default is Angle(0, 0, 0).