{
  "name": "Text Formatting",
  "description": "The formatting tokens the game understands in labels, chat and HUD text: colours, icons, button glyphs and line breaks.",
  "platform": "FiveM",
  "url": "https://devtoolsgg.com/fivem/list/text-formatting",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Compiled by https://devtoolsgg.com",
  "sources": [
    {
      "name": "Cfx.re docs",
      "url": "https://docs.fivem.net/docs/game-references/text-formatting/"
    }
  ],
  "columns": [
    {
      "key": "label",
      "label": "Token"
    },
    {
      "key": "description",
      "label": "What it does"
    },
    {
      "key": "example",
      "label": "Example"
    }
  ],
  "count": 20,
  "rows": [
    {
      "label": "~HUD_COLOUR_...~",
      "description": "References an existing HUD color.",
      "example": "Find the ~HUD_COLOUR_FREEMODE~freemode ped!"
    },
    {
      "label": "~HC_...~",
      "description": "An alias for ~HUD_COLOUR",
      "example": "Find the ~HC_FREEMODE~freemode ped!"
    },
    {
      "label": "~HC_[number]~",
      "description": "Specifies a HUD color by index.",
      "example": "Get to ~HC_13~Davis."
    },
    {
      "label": "~s~",
      "description": "Resets the color to the default for the current context.",
      "example": "After killing the ~r~enemies~s~, you win!"
    },
    {
      "label": "~v~",
      "description": "HUD_COLOUR_SCRIPT_VARIABLEThis is a placeholder for the color set with SET_SCRIPT_VARIABLE_HUD_COLOUR.",
      "example": "Wait for your ~v~team~s~ to lose the Cops."
    },
    {
      "label": "~u~",
      "description": "HUD_COLOUR_SCRIPT_VARIABLE_2This is a placeholder for the color set with _SET_SCRIPT_VARIABLE_2_HUD_COLOUR.",
      "example": "Take out ~v~~a~~s~ & defend ~u~~a~~s~."
    },
    {
      "label": "~w~",
      "description": "HUD_COLOUR_WHITEUsed together with ~s~ to reset text color.",
      "example": "Swoop on over to ~b~foreclosures.maze-bank.com~w~~s~ today"
    },
    {
      "label": "~r~",
      "description": "HUD_COLOUR_REDUsed for enemy characters or vehicles.",
      "example": "Kill all the ~r~Vagos."
    },
    {
      "label": "~g~",
      "description": "HUD_COLOUR_GREENUsed for pickup-type objectives.",
      "example": "Pick up the ~g~flash drive."
    },
    {
      "label": "~b~",
      "description": "HUD_COLOUR_BLUEUsed for friendly characters or vehicles.",
      "example": "Defend ~b~Lamar."
    },
    {
      "label": "~f~",
      "description": "HUD_COLOUR_FRIENDLYAn alternate (rare) version for friendly objectives.",
      "example": "Vehicle health can be restored by waiting in the ~f~pit stop area~s~."
    },
    {
      "label": "~y~",
      "description": "HUD_COLOUR_YELLOWDestination names.",
      "example": "Deliver the Special Cargo to the ~y~restricted area."
    },
    {
      "label": "~c~",
      "description": "HUD_COLOUR_MENU_GREYDe-emphasized text used in subtitles, to indicate a character out of view.",
      "example": "~z~He's a bum! ~c~~n~Oh my God!"
    },
    {
      "label": "~t~",
      "description": "HUD_COLOUR_MENU_GREYDe-emphasized text used in subtitles, to indicate text spoken in a different language.",
      "example": "~z~those ~t~idiots."
    },
    {
      "label": "~o~",
      "description": "HUD_COLOUR_ORANGEA team color indicator.",
      "example": "~o~The Cocks~s~ are mad."
    },
    {
      "label": "~p~",
      "description": "HUD_COLOUR_PURPLEA team color indicator.",
      "example": "~p~The Boars~s~ are off the radar."
    },
    {
      "label": "~q~",
      "description": "HUD_COLOUR_PINKUsed for Arena War.",
      "example": "You are the active contender on your ~q~team~s~."
    },
    {
      "label": "~m~",
      "description": "HUD_COLOUR_MID_GREY_MPMedium gray to de-emphasize or use for 'Silver'.",
      "example": "~m~Display Mini Map."
    },
    {
      "label": "~l~",
      "description": "HUD_COLOUR_BLACKUsed when unable to set a color any other way to specify black.",
      "example": "~l~PLAYERS"
    },
    {
      "label": "~d~",
      "description": "HUD_COLOUR_BLUEDARKUsed to specify a team objective occupied by a player.",
      "example": "Help your team deliver a ~d~vehicle ~s~to your ~b~base."
    }
  ]
}
