Red text with ~r~, bold with ~h~, a new line with ~n~ and the player's key with ~INPUT_CONTEXT~. Write the text, see roughly how it looks in the game and copy the code that shows it.
Free
Nothing is uploaded
No account
~r~ ~g~ ~b~
Click to put in a colour
Lua (client)
BeginTextCommandThefeedPost('STRING')
AddTextComponentSubstringPlayerName('~r~Police~s~: Stop the vehicle!~n~Press ~INPUT_CONTEXT~ to ~g~show your licence~s~. ~h~Wanted~h~ ~ws~~ws~')
EndTextCommandThefeedPostTicker(false, true)
How it looks
Roughly as in the game. 64 characters without codes.
Police: Stop the vehicle! Press E to show your licence. Wanted★★
Police: Stop the vehicle! Press E to show your licence. Wanted★★
The font and size are not the game's own. The colours are the game's default HUD colours, and ~INPUT_~ shows the control's default key. Blip and gamepad icons show as their name. Codes in a red box are ones the page does not know.
Every code
Code
Colour
Used for
~r~
#e03232 HUD_COLOUR_RED
Enemies
~g~
#72cc72 HUD_COLOUR_GREEN
Pickups
~b~
#5db6e5 HUD_COLOUR_BLUE
Friends
~y~
#f0c850 HUD_COLOUR_YELLOW
Places and destinations
~o~
#ff8555 HUD_COLOUR_ORANGE
Team colour
~p~
#8466e2 HUD_COLOUR_PURPLE
Team colour
~q~
#cb3694 HUD_COLOUR_PINK
Pink (Arena War)
~f~
#5db6e5 HUD_COLOUR_FRIENDLY
Friendly objectives (rare)
~d~
#2f5c73 HUD_COLOUR_BLUEDARK
Dark blue
~c~
#8c8c8c HUD_COLOUR_MENU_GREY
Grey, faded text
~t~
#8c8c8c HUD_COLOUR_MENU_GREY
Grey, another language in subtitles
~m~
#646464 HUD_COLOUR_MID_GREY_MP
Mid grey ("silver")
~l~
#000000 HUD_COLOUR_BLACK
Black
~w~
#f0f0f0 HUD_COLOUR_WHITE
White
~s~
#f0f0f0 HUD_COLOUR_WHITE
Back to the default colour
~n~
–
New line
~h~
–
Bold, once more to stop
~bold~
–
Same as ~h~
~italic~
–
Italic, once more to stop
~ws~
–
Wanted star
~HUD_COLOUR_RED~
–
Any HUD colour by name
~HC_6~
–
Any HUD colour by number
~INPUT_CONTEXT~
–
The player's key for a control (help text)
~BLIP_BENNYS~
–
A blip icon (help text)
~EX_R*~
–
The Rockstar logo
All 235 HUD colours
Write ~HUD_COLOUR_NAME~ or ~HC_number~ in the text. A server can change them with REPLACE_HUD_COLOUR.
Good to know. The codes and HUD colours are taken from FiveM's documentation (docs.fivem.net, 2026-11-26). The preview is rough: the font is not the game's, blip and gamepad icons show as text, and a server may have changed the HUD colours.
Three steps
01
Write the text
Click a colour or code to put it in where the cursor is.
02
See how it looks
The preview shows the text as a notification and a help text, with the game's HUD colours.
03
Copy the code
Pick notification, help text or ESX.ShowNotification and copy the Lua.