Hook into chat events from your own scripts.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.
Server-side
chatMessage (legacy, compatible)
Standard FiveM event — backwards-compatible.
Server
The sender’s server ID.
Sender display name (character name in roleplay, Steam name otherwise).
Raw message text (after color-code parsing).
Raw strings only. For rich payloads use
fxChat:messageReceived below.fxChat:messageReceived
Rich message event with the full options payload.
Server
Sender server ID.
Same shape as the
options argument of
addMessage — args,
title, label, color, badge, special.Example — log to your own analytics
fxChat:playerMuted
Fired when a player is muted (manually or auto-muted by rate limiter).
Server
Server ID of the muted player.
Mute duration in ms, or
nil for permanent."manual", "rate_limit", or "blacklist".fxChat:playerUnmuted
Fired when a mute expires or is lifted.
Server
Client-side
fxChat:opened
Fired when the chat input becomes focused (T pressed).
Client
fxChat:closed
Fired when chat input loses focus (ESC pressed or message sent).
Client
fxChat:themeChanged
Fired when the active theme changes for this client (player picked a new
one, or admin force-changed it).
Client
Filename without
.json (e.g. "midnight").