# Форматирование текста

Токены форматирования, которые игра понимает в label, чате и тексте HUD: цвета, иконки, глифы кнопок и переносы строк.

- Платформа: FiveM
- Записи: 20
- Каноническая страница: https://devtoolsgg.com/ru/fivem/list/text-formatting
- JSON: https://devtoolsgg.com/data/fivem/text-formatting.json
- CSV: https://devtoolsgg.com/data/fivem/text-formatting.csv

## Источники

- Документация Cfx.re: https://docs.fivem.net/docs/game-references/text-formatting/

## Данные

| Токен | Что делает | Пример |
| --- | --- | --- |
| ~HUD_COLOUR_...~ | References an existing HUD color. | Find the ~HUD_COLOUR_FREEMODE~freemode ped! |
| ~HC_...~ | An alias for ~HUD_COLOUR | Find the ~HC_FREEMODE~freemode ped! |
| ~HC_[number]~ | Specifies a HUD color by index. | Get to ~HC_13~Davis. |
| ~s~ | Resets the color to the default for the current context. | After killing the ~r~enemies~s~, you win! |
| ~v~ | HUD_COLOUR_SCRIPT_VARIABLEThis is a placeholder for the color set with SET_SCRIPT_VARIABLE_HUD_COLOUR. | Wait for your ~v~team~s~ to lose the Cops. |
| ~u~ | HUD_COLOUR_SCRIPT_VARIABLE_2This is a placeholder for the color set with _SET_SCRIPT_VARIABLE_2_HUD_COLOUR. | Take out ~v~~a~~s~ & defend ~u~~a~~s~. |
| ~w~ | HUD_COLOUR_WHITEUsed together with ~s~ to reset text color. | Swoop on over to ~b~foreclosures.maze-bank.com~w~~s~ today |
| ~r~ | HUD_COLOUR_REDUsed for enemy characters or vehicles. | Kill all the ~r~Vagos. |
| ~g~ | HUD_COLOUR_GREENUsed for pickup-type objectives. | Pick up the ~g~flash drive. |
| ~b~ | HUD_COLOUR_BLUEUsed for friendly characters or vehicles. | Defend ~b~Lamar. |
| ~f~ | HUD_COLOUR_FRIENDLYAn alternate (rare) version for friendly objectives. | Vehicle health can be restored by waiting in the ~f~pit stop area~s~. |
| ~y~ | HUD_COLOUR_YELLOWDestination names. | Deliver the Special Cargo to the ~y~restricted area. |
| ~c~ | HUD_COLOUR_MENU_GREYDe-emphasized text used in subtitles, to indicate a character out of view. | ~z~He's a bum! ~c~~n~Oh my God! |
| ~t~ | HUD_COLOUR_MENU_GREYDe-emphasized text used in subtitles, to indicate text spoken in a different language. | ~z~those ~t~idiots. |
| ~o~ | HUD_COLOUR_ORANGEA team color indicator. | ~o~The Cocks~s~ are mad. |
| ~p~ | HUD_COLOUR_PURPLEA team color indicator. | ~p~The Boars~s~ are off the radar. |
| ~q~ | HUD_COLOUR_PINKUsed for Arena War. | You are the active contender on your ~q~team~s~. |
| ~m~ | HUD_COLOUR_MID_GREY_MPMedium gray to de-emphasize or use for 'Silver'. | ~m~Display Mini Map. |
| ~l~ | HUD_COLOUR_BLACKUsed when unable to set a color any other way to specify black. | ~l~PLAYERS |
| ~d~ | HUD_COLOUR_BLUEDARKUsed to specify a team objective occupied by a player. | Help your team deliver a ~d~vehicle ~s~to your ~b~base. |

## Как цитировать

Форматирование текста, devtoolsgg.com. https://devtoolsgg.com/ru/fivem/list/text-formatting
