Set chat defaults and commands
Choose what chat accepts, what it looks like, and who can edit custom commands.
Behavior
To let players type without a slash command, set this in the installed config.lua, restart FS-Chat, and send an ordinary line from a player account:
Config.SuppressNonCommandMessages = falseExisting roleplay commands still work. Use the separate join/leave option if you want to hide connection notices.
By default, chat shows recognized commands but not ordinary text. Change that here if players should also be able to send plain messages.
Prop
Type
Let staff edit custom commands
Grant the editor ACE to the group that should manage commands. The default is:
add_ace group.admin fschat.customcommands allowRun /chatcommands as a member of that group. Changed commands save to data/custom_commands.json in the resource. Back up that file before an update.
Appearance
These are server defaults. Individual players can edit their own layout with /chatedit.
Prop
Type
Commands
/chatopens the chat input (also bound toT)./clearclears the local chat window./chatedittoggles edit mode for position, scale, and theme./me,/do,/ooc,/leo,/ems,/med,/firesend roleplay messages./gme,/gdo,/gooc,/gleo,/gems,/gmed,/gfiresend global variants./eassends an emergency alert message./adsends an advertisement message.
Keybinds
Topens chat input.
Events
FS-Chat implements standard FiveM chat events for compatibility:
chat:addMessagechat:addSuggestionchat:clearchat:openchat:executeClient
Notes
Player layout settings are stored on their client using resource KVPs, so those choices survive reconnects.
Installation
-
Put the built
FS-Chatfolder inresources. -
Remove the default
ensure chatentry fromserver.cfg. Ifresources_useSystemChatis already set totrue, edit the existing line. Your config should have:set resources_useSystemChat false ensure FS-Chat -
Change any settings you need in the installed
config.lua, then restart the server or FS-Chat. Press T and use/meto check that there is one chat window and a roleplay message appears.