Skip to main content
Same call signature on client or server.

formatMessage(args)

Apply fxChat’s color-code and markdown parser to a string. Returns the HTML that fxChat would render.
Shared
string
required
Raw input with optional inline color codes and markdown.
string
Sanitized HTML. Already escaped — safe to pass through to NUI directly.
Example
Useful for mimicking fxChat’s rendering in your own NUI.

getConfig(key?)

Read a value from configs/chat.lua from either side. Returns the entire config table when called without arguments.
Shared
string
Top-level config key. Omit to get the full table.
any
The config value. nil if the key doesn’t exist.
Example

getThemeNames()

List the theme filenames installed on the server.
Shared
string[]
e.g. { "default", "midnight", "crimson", "glass", "catppuccin", "samp", "ghostty" }
Example

getVersion()

Returns the fxChat version string from fxmanifest.lua.
Shared
string
e.g. "2.0.0".
Example

Don’t make security decisions based on client-side getConfig — the server source is the only trusted one.