Skip to content

Text

Look up your strings.

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