Same call signature on client or server.Documentation Index
Fetch the complete documentation index at: https://fxscripts.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
formatMessage(args)
Apply fxChat’s color-code and markdown parser to a string. Returns the
HTML that fxChat would render.
Shared
Raw input with optional inline color codes and markdown.
Sanitized HTML. Already escaped — safe to pass through to NUI directly.
Example
getConfig(key?)
Read a value from configs/chat.lua from either side. Returns the entire
config table when called without arguments.
Shared
Top-level config key. Omit to get the full table.
The config value.
nil if the key doesn’t exist.Example
getThemeNames()
List the theme filenames installed on the server.
Shared
e.g.
{ "default", "midnight", "crimson", "glass", "catppuccin", "samp", "ghostty" }Example
getVersion()
Returns the fxChat version string from fxmanifest.lua.
Shared
e.g.
"2.0.0".Example
Don’t make security decisions based on client-side
getConfig — the
server source is the only trusted one.