HUDClientChecked by LS:MP

replaceHudColour

REPLACE_HUD_COLOUR0x1CCC708F0F850613

The 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.

SignatureJavaScript
replaceHudColour(hudColorIndex: number, hudColorIndex2: number): void
SignatureLua
replaceHudColour(hudColorIndex: integer, hudColorIndex2: integer)

Usage

JavaScript
replaceHudColour(hudColorIndex, hudColorIndex2);
Lua
replaceHudColour(hudColorIndex, hudColorIndex2)

Parameters

ParameterTypeJavaScriptLua
hudColorIndexintnumberinteger
hudColorIndex2intnumberinteger

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

Open in the interactive natives reference