Text Formatting
FiveM Color Codes Guide
Click on any color to copy its caret code (^1). Use the interactive preview below to test your server name or chat messages.
Want colors on your Loading Screen?
Vice-Forge lets you visually pick any HEX gradient color for your FiveM loading screen. No caret codes required.
Live Preview Editor
In-Game Output
Welcome to My Server
How to use FiveM Color Codes
FiveM uses a specific syntax called "caret codes" to add color to text in-game. By placing a caret symbol (^) followed by a number (0-9) directly in front of your text, the game engine will colorize all text that follows it.
For example, typing ^1Hello ^2World will result in the word "Hello" being Red and the word "World" being Green.
Where can I use these colors?
- Server Name: You can add these codes directly to the
sv_hostnamevariable in yourserver.cfgfile to make your server stand out in the FiveM server browser. - Chat Scripts: Use them in custom Lua scripts when sending messages to the chat using
TriggerClientEvent('chat:addMessage'). - Player Names: Sometimes used in roleplay scripts to colorize admin names or job titles above player heads.
How do I reset the color back to normal?
The default color in FiveM is white. If you want to colorize only one word and return to white for the rest of the sentence, simply use ^0 after the colored word.