getHudColour
GET_HUD_COLOUR0x7C9C91AB74A0360FThe GTA V native GET_HUD_COLOUR of the HUD namespace, as LS:MP client scripts call it: the global function getHudColour, in JavaScript and in Lua.
getHudColour(hudColorIndex: number): [
r: number,
g: number,
b: number,
a: number
]getHudColour(hudColorIndex: integer): integer, integer, integer, integerUsage
JavaScript
const [r, g, b, a] = getHudColour(hudColorIndex);Lua
local r, g, b, a = getHudColour(hudColorIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hudColorIndex | int | number | integer |
Returns
4 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | r | int | number | integer | output |
| 2 | g | int | number | integer | output |
| 3 | b | int | number | integer | output |
| 4 | a | int | number | integer | output |
Reference
- Namespace
- HUD HUD
- In the game
void GET_HUD_COLOUR(int hudColorIndex, int* r, int* g, int* b, int* a)- Hash
0x7C9C91AB74A0360F