Text
Look up your strings.
mod.text(key, ...)
Section titled “mod.text(key, ...)”server + client
Looks up key in the strings. Extra arguments go through string.format. A missing key returns the key itself.
| Parameter | Type | |
|---|---|---|
key |
string |
A strings key. |
... |
any |
Format arguments. |
Returns string
mod.data.add("strings", "hello", { en = "HELLO %s" })mod.log(mod.text("hello", "ADMIRAL")) -- HELLO ADMIRAL