replaceHudColour
REPLACE_HUD_COLOUR0x1CCC708F0F850613The GTA V native REPLACE_HUD_COLOUR of the HUD namespace, as LS:MP client scripts call it: the global function replaceHudColour, in JavaScript and in Lua.
replaceHudColour(hudColorIndex: number, hudColorIndex2: number): voidreplaceHudColour(hudColorIndex: integer, hudColorIndex2: integer)Usage
JavaScript
replaceHudColour(hudColorIndex, hudColorIndex2);Lua
replaceHudColour(hudColorIndex, hudColorIndex2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hudColorIndex | int | number | integer |
hudColorIndex2 | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
ℹ
Checked by LS:MP
hudColorIndex must be between 0 and 234. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
makes hudColorIndex2 color into hudColorIndex color
Reference
- Namespace
- HUD HUD
- In the game
void REPLACE_HUD_COLOUR(int hudColorIndex, int hudColorIndex2)- Hash
0x1CCC708F0F850613- Formerly
_SET_HUD_COLOURS_SWITCH