ix.currency
A library representing the server's currency system.
Functions
ix.currency.Get(amount)
View source »Returns a formatted string according to the current currency.
Parameters
-
amount
number
The amount of cash being formatted.
Returns
-
string
The formatted string.
ix.currency.Set(symbol, singular, plural, model)
View source »Sets the currency type.
Parameters
-
symbol
string
The symbol of the currency.
-
singular
string
The name of the currency in it's singular form.
-
plural
string
The name of the currency in it's plural form.
-
model
string
The model of the currency entity.
ix.currency.Spawn(pos, amount, angle)
View source »Spawns an amount of cash at a specific location on the map.
Parameters
-
pos
vector
The position of the money to be spawned.
-
amount
number
The amount of cash being spawned.
-
angle
angle
default: angle_zero
The angle of the entity being spawned.
Returns
-
entity
The spawned money entity.