FearlessStudios
FiveM ScriptsPaid ScriptsFS-Chat

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 = false

Existing 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 allow

Run /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

  • /chat opens the chat input (also bound to T).
  • /clear clears the local chat window.
  • /chatedit toggles edit mode for position, scale, and theme.
  • /me, /do, /ooc, /leo, /ems, /med, /fire send roleplay messages.
  • /gme, /gdo, /gooc, /gleo, /gems, /gmed, /gfire send global variants.
  • /eas sends an emergency alert message.
  • /ad sends an advertisement message.

Keybinds

  • T opens chat input.

Events

FS-Chat implements standard FiveM chat events for compatibility:

  • chat:addMessage
  • chat:addSuggestion
  • chat:clear
  • chat:open
  • chat:executeClient

Notes

Player layout settings are stored on their client using resource KVPs, so those choices survive reconnects.

Installation

  1. Put the built FS-Chat folder in resources.

  2. Remove the default ensure chat entry from server.cfg. If resources_useSystemChat is already set to true, edit the existing line. Your config should have:

    set resources_useSystemChat false
    ensure FS-Chat
  3. Change any settings you need in the installed config.lua, then restart the server or FS-Chat. Press T and use /me to check that there is one chat window and a roleplay message appears.