concept_chat)A free chat for FiveM that takes the place of the default chat resource. Scripts written for the default chat keep working: the same events, exports, templates, suggestions and modes.
Source and download · Report an issue · Concept Bridge
Use this guide with your installed version's changelog.
Back up the default chat folder and remove it (or take its ensure out of server.cfg).
Put this folder in resources and name it chat.
In server.cfg:
ensure oxmysql
ensure ox_lib
# your framework and inventory here
ensure concept_bridge
ensure chat
add_ace group.admin concept_chat.demo allow
add_ace group.admin concept_chat.edit allow
If server.cfg has set resources_useSystemChat true, set it to false. With true the server loads FiveM's built-in chat and skips the chat folder.
Join and type /cchatdemo.
| Command | Who | What it does |
|---|---|---|
| T | everyone | Opens the chat. Tab completes, Up and Down bring back earlier messages, Ctrl+Tab switches tabs |
/chatstyle |
everyone | Picks a style: classic, glass, depth, neon, minimal |
/chatmode |
everyone | Fade, always or hidden |
/clear |
everyone | Empties your own chat |
/editchat |
everyone, concept_chat.edit |
The editor. Save for me, or Save for everyone with the ACE |
/cchatdemo |
concept_chat.demo |
Shows what the chat can do |
editchat reset |
server console | Back to config.lua |
How the chat looks: styles, tabs, the input bar, /editchat, and the themes and colours.
The theme sets the colours, the style sets how the message list looks. Config.Style is the server default: classic (the rows as before), glass (frosted panel, the blur costs a few frames on weak PCs), depth (older rows on top shrink and soften), neon (one dark panel with a glowing line in the main colour) or minimal (no boxes, a dotted top edge). Players change it with /chatstyle or /chatstyle neon (saved per player), or in /editchat. Config.StyleCommand = false removes the command. The style does not depend on concept_ui and works with every theme.
Config.Tabs puts All, IC and OOC tabs above the messages while the chat is open, each with its message count. A message is OOC when its name or text starts with a word in Config.Tabs.ooc (OOC, LOOC, (( by default, so /ooc and /looc from Config.Commands land there), or when it was sent in a chat mode listed in Config.Tabs.modes. Everything else, server lines too, is IC. Ctrl+Tab, or Tab while the box is empty, goes to the next tab. The open tab also decides where a plain message goes (Config.Tabs.routeByTab, on by default): typed in the OOC tab it goes out as OOC, in the IC tab as a normal IC message, in All as before. The empty box shows "OOC:" while it writes OOC. Commands with / work the same in every tab. With Config.Tabs.mouse = true the cursor shows while the chat is open and the tabs can be clicked. enabled = false removes the bar.
Config.Input picks the input bar: classic (the original bar with the slanted tag), slim (thin bar with an underline) or pill (round bar with a soft glow). It works with every style and with tabs. Config.Opacity (0 to 100, default 100) scales how strong the backgrounds of the message list and the input bar are. 100 is the normal look, lower values let the game show through. 0 removes the panel completely (also neon's dark box and the glass blur), only the text, the tags and the accent line stay. Players can change both in /editchat (Input bar and Background) and see it live.
/editchat opens a panel on the right, like concept_ui's /editui. It sets the style, the message mode, the place, tabs (on or off, which ones, clickable or not), size, fade time, rows and width. Every change shows on the chat at once, with a few sample lines. Esc or Cancel drops the changes, Reset goes back to the server's defaults (for admins, to config.lua). /editchat also has the chat's own colours: theme, main colour, name tag, CMD tag and text, with quick colours, a hue slider, a hex field and Reset colours. They are saved like the rest of the panel and have nothing to do with concept_ui's /editui.
/chatmode and /chatstyle change the same settings.chat_settings.json in the resource folder and sent to every player at once. Players who saved their own settings keep theirs.Admins have the concept_chat.edit ACE (add_ace group.admin concept_chat.edit allow). editchat reset in the server console goes back to config.lua. Config.EditCommand = false removes the editor, Config.PlayerSettings = false lets only the server's settings count.
The chat has its own theme and colours, apart from concept_ui: Config.Theme, Config.Accent, Config.NameColor, Config.CommandColor, Config.TextColor and Config.Scale, and in game /editchat. The theme names are the same as concept_ui's, so to match the two, set both the same. The full list is in the presets and values below.
Later layers win, key by key:
config.lua: Config.Theme, Config.Accent, Config.NameColor, Config.CommandColor, Config.TextColor, Config.Scale/editchat (chat_settings.json)/editchat| Name | Look |
|---|---|
default |
flat dark panels, hard shadows |
midnight |
black panels, thin outlines in the main colour, square corners |
light |
white panels, soft shadows, round corners |
concept_ui has presets with the same names.
| Setting | Config | Default | Used for |
|---|---|---|---|
accent |
Config.Accent |
#0055c4 |
bars, mode tags, the input frame, the neon line |
nameColor |
Config.NameColor |
#0055c4 |
the name tag on player messages |
cmdColor |
Config.CommandColor |
#ffbe1e |
the CMD tag while typing a /command |
textColor |
Config.TextColor |
'' |
message text, '' = the theme's |
Colours are #rrggbb (#rgb works too). Text on a light colour turns dark by itself. A colour a script sends with a message (color = { r, g, b }) still wins over nameColor.
For chat_theme stylesheets: --cc-accent, --cc-name, --cc-warning (r, g, b), --cc-text, --cc-dim, --cc-bg, --cc-bg-2, --cc-scale, and data-theme on ``.
config.lua explained. The comments in the file say the same in more detail.
config.lua starts with what most servers change: language, names, theme, style, tabs and Config.Debug. Below: position, key, fade, message limit and cooldown, name fallback and format, the optional commands, the demo command, chat_theme loading, txAdmin announcements and single-word text changes.
Languages: en, hu, de, fr, es, it, pl, pt (set Config.Locale). pt is Brazilian Portuguese, worded to read naturally in Portugal too where possible.
Config.Names picks what shows as the author of a player message: character (the character name from concept_bridge: ox_core, Qbox, QBCore or ESX), player, both, id or anonymous. Config.Fallback is the order to try when the first is missing, and Config.NameFormat wraps it, for example '[{id}] {name}'. Names are cached per player and refreshed when a character loads.
/me, /do, /ooc and /looc are in Config.Commands and off by default, so a server's own versions keep working. Each has a scope: 'global' reaches every player, 'local' only the players within distance metres. /ooc is global and /looc local out of the box; give /ooc scope = 'local' if OOC should stay local on your server.
Every setting in config.lua. The comments in the file say the same in more detail.
| Key | Default | What it does |
|---|---|---|
Config.Locale |
'en' |
Language (en, hu, de, fr, es, it, pl, pt) |
Config.Names |
'character' |
Name on messages: character, player, both, id, anonymous |
Config.Theme |
'default' |
default, midnight or light |
Config.Accent |
'#0055c4' |
Main colour: bars, tags, the neon line |
Config.NameColor |
'#0055c4' |
Name tag on player messages |
Config.CommandColor |
'#ffbe1e' |
CMD tag while typing a /command |
Config.TextColor |
'' |
Message text; '' = the theme's |
Config.Scale |
1.0 |
Chat size |
Config.Style |
'classic' |
Message list style: classic, glass, depth, neon, minimal |
Config.StyleCommand |
'chatstyle' |
Command for a player's own style; false = none |
Config.Input |
'classic' |
Input bar: classic, slim, pill |
Config.Opacity |
100 |
Strength of style backgrounds, 0 to 100 |
Config.EditCommand |
'editchat' |
Chat editor command; false = no editor |
Config.EditPermission |
'concept_chat.edit' |
ACE that may save editor settings for everyone |
Config.PlayerSettings |
true |
Players keep their own settings; false = server only |
Config.Tabs |
enabled, mouse, ooc, modes |
All, IC and OOC tabs and what counts as OOC |
Config.Tabs.routeByTab |
true |
A plain message in the OOC tab goes out as OOC, in the IC tab as IC |
Config.Debug |
false |
Extra console lines |
Config.Position |
'top-left' |
top-left, middle-left or bottom-left |
Config.HudPosition |
'middle-left' |
Position while concept_hud runs; false = keep Position |
Config.Key |
't' |
Open key (players can rebind it) |
Config.Mode |
'fade' |
fade, always or hidden |
Config.ModeCommand |
'chatmode' |
Command to switch mode; false = off |
Config.FadeSeconds |
9 |
Seconds before new messages fade |
Config.MaxMessages |
100 |
Messages kept in the list |
Config.CooldownMs |
600 |
Minimum ms between two messages per player (server) |
Config.Fallback |
{ 'rp', 'player' } |
Names tried when the main one is missing |
Config.NameFormat |
'{name}' |
Name template: {name}, {id}, {rp}, {player}, {steam} |
Config.Commands |
me, do, ooc, looc (off) |
Built-in /me /do /ooc /looc with distance and colour |
Config.SuggestValues |
players, items, vehicles, weather |
Value lists the chat suggests for arguments |
Config.Suggestions |
{} |
Help and values for commands without their own |
Config.Demo |
{ command = 'cchatdemo', permission = 'concept_chat.demo' } |
/cchatdemo command and its ACE; false removes it |
Config.ChatThemes |
true |
Load chat_theme files other resources declare |
Config.TxAdminAnnouncements |
false |
Also show txAdmin announcements in the chat |
Config.Text |
{} |
Override single words of the language file |
At start the server console gets one line:
[concept_chat] 1.0.0 | running as: chat | framework: qbx_core | names: character | theme: default
A warning shows when something will not work the way the config asks, for example character names with no framework running. Errors in another script's message hook or mode print in red with the script's name. Config.Debug = true adds a few notes; with it off nothing else is printed. Player messages are printed too, like the default chat does (txAdmin keeps them in its log); Config.ConsoleLog = false turns that off.
concept_chat keeps the default chat's events and exports, so scripts written for it need no changes. This page lists them and what the chat adds on top.
Client events: chat:addMessage, chatMessage, chat:addSuggestion, chat:addSuggestions, chat:removeSuggestion, chat:addTemplate, chat:clear, chat:addMode, chat:removeMode.
Server events: chatMessage (call CancelEvent() to stop a message), _chat:messageEntered, chat:init.
Client exports: addMessage, addSuggestion, removeSuggestion, addTemplate, ClearChat, IsChatOpen, CloseChat, SetChatMode, GetChatMode, SetChatStyle, GetChatStyle, SetHidden.
Server exports: addMessage, registerMessageHook, registerMode, unregisterMode.
TriggerClientEvent('chat:addMessage', -1, { color = { 255, 80, 80 }, args = { 'SERVER', 'Restart in 5 minutes' } })
exports.chat:registerMode({ name = 'staff', displayName = 'Staff', color = '#e04a4a', seObject = 'group.admin' })
Messages support colour codes ^0 to ^9, ^* bold, ^_ underline, ^~ strikethrough, ^r reset, multiline, template, templateId and params. Text in args is always escaped; only templates are HTML.
Typing / lists the commands the player may use. Arguments come from chat:addSuggestion, and an argument can also list the values it takes. The chat shows them below the command while that argument is typed and filters them by what is typed so far. Tab or a click fills one in, Up and Down pick one.
TriggerEvent('chat:addSuggestion', '/fhfake', 'Counterfeit places: list, or place one', {
{ name = 'spot', help = 'Which place', options = { 'dealer', 'workshop', { value = 'fence', label = 'The fence' } } },
})
options is ignored by the default chat, so a script can send it either way. An argument named on|off gets on and off as its values without options.
Most commands never say which values they take, so the chat also works them out by itself (Config.SuggestValues):
target, player or playerId, an ox_lib playerId argument, or an id whose help says player: the online players, id and nameitem: the items of the inventory concept_bridge usesmodel, vehicle or car: the game's vehicle modelsweather: the weather typeson | off or poly, box, sphereA plain RegisterCommand sends nothing about its arguments. Describe those commands in Config.Suggestions in config.lua. When a script does describe its command, its own text wins and the table only fills the gaps, such as the values of an argument.
chat_theme metadata from other resources is read too, so existing chat themes load their stylesheet and templates (Config.ChatThemes). Their default, defaultAlt and print templates are left out, so a theme like qbx_chat_theme or esx_chat_theme cannot replace the normal message row and its name tag.
The chat needs Concept Bridge 1.0.0 or newer. Start it before the chat (ensure concept_bridge above ensure chat).
Framework module, so every framework the bridge supports works with Config.Names = 'character'.item suggestions come from the bridge's Inventory module, so they list the items of whatever inventory the bridge uses.FiveM cannot check versions in dependency, so an older bridge is not caught at start. Use 1.0.0 or newer. With ESX the name comes from the firstName and lastName the bridge reads; if your ESX keeps names elsewhere, the chat shows the next name in Config.Fallback.
Common problems and what to do about them.
attempt to call a nil value in client/main.lua: the server still uses the old file list. Run refresh and then ensure chat in the server console, or restart the server.ensure concept_bridge before ensure chat.ensure chat for it, or delete its folder, and name this one chat.concept_chat. Rename it to chat.framework:) and start the framework before the bridge./me shows twice: another script already has it. Leave Config.Commands.me.enabled = false./editui: on purpose, the chat has its own. Set them in /editchat, or with Config.Accent and the lines next to it.set resources_useSystemChat true is in server.cfg. Set it to false./cchatdemo says no access: add add_ace group.admin concept_chat.demo allow, or set Config.Demo.permission = false.Free and open source under GPL-3.0 (see LICENSE). Copyright (C) 2026 Concept Studio. It is a separate implementation written to match the default chat's public events, exports and message hooks. Fonts are SIL OFL 1.1, see THIRD_PARTY_LICENSES.md.
Made by Concept Studio. More scripts: conceptstudio.store. Questions and updates: Discord.
We aim to reply on Discord within 24 hours on business days.
Need help with setup? Join Discord or support@conceptstudio.store.