HUDClient

setCustomMpHudColor

SET_CUSTOM_MP_HUD_COLOR0x2ACCB195F3CCD9DE

The GTA V native SET_CUSTOM_MP_HUD_COLOR of the HUD namespace, as LS:MP client scripts call it: the global function setCustomMpHudColor, in JavaScript and in Lua.

SignatureJavaScript
setCustomMpHudColor(hudColorId: number): void
SignatureLua
setCustomMpHudColor(hudColorId: integer)

Usage

JavaScript
setCustomMpHudColor(hudColorId);
Lua
setCustomMpHudColor(hudColorId)

Parameters

ParameterTypeJavaScriptLua
hudColorIdintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_CUSTOM_MP_HUD_COLOR(int hudColorId)
Hash
0x2ACCB195F3CCD9DE
Introduced
Game build 2545 legacy numbering
Formerly
_SET_CURRENT_CHARACTER_HUD_COLOR

Open in the interactive natives reference