Skip to content

HUD colours

The colour table CL scripts use in text (<COLOR rrggbbaa>) and the HUD slots CfgHUDColor assigns from it.

What is complete

Every key of CL is listed.

14 entries. Data: research/references/hud-colours.yaml.

Entries

Key RGBA Swatch HUD slot Note
wht B2B2B2FF
but FFFFFFFF 1
cash 49B749FF 2
warr 861A1AFF 3
txt 806400FF 4
gry 505050FF 5
bon 6A4183FF 6
blu 2353BCFF 7
orng 2353BCFF 8 The scripts give it the same value as blu, so the HUD's slot 8 is blue, not orange
bigmoney 9 The scripts write it with a 0x prefix; how the text code reads that is not traced, so no colour is shown
hudWhite B2B2B2FF
selected
enabled 505050FF
disabled 505050FF

Sources and evidence

Evidence levels used: inferred.

  • config_preload2.lua, CL and CfgHUDColor

Fields

Field Type Hand-written Meaning
id str The key in global.lua's colour table CL.
rgba str The colour as RRGGBBAA hex.
swatch str A swatch of the colour (rendered).
markup str The text the table holds (a <COLOR> tag, or a list of four bytes).
hud_slot int CfgHUDColor slot the colour is given to, if any.
note str yes What is odd about the entry, in our words.
source str yes Where the entry comes from: a script and binding, an address, a chunk.
evidence str yes How we know: confirmed-code, confirmed-runtime, inferred or speculative (evidence levels).
notes str yes Our own short notes.