HUDClient

setMpGamerTagColour

SET_MP_GAMER_TAG_COLOUR0x613ED644950626AE

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

SignatureJavaScript
setMpGamerTagColour(
  gamerTagId: number,
  component: number,
  hudColorIndex: number
): void
SignatureLua
setMpGamerTagColour(
  gamerTagId: integer,
  component: integer,
  hudColorIndex: integer
)

Usage

JavaScript
setMpGamerTagColour(gamerTagId, component, hudColorIndex);
Lua
setMpGamerTagColour(gamerTagId, component, hudColorIndex)

Parameters

ParameterTypeJavaScriptLua
gamerTagIdintnumberinteger
componentintnumberinteger
hudColorIndexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets a gamer tag's component colour

gamerTagId is obtained using for example createFakeMpGamerTag
Ranges from 0 to 255. 0 is grey health bar, ~50 yellow, 200 purple.

Reference

Namespace
HUD HUD
In the game
void SET_MP_GAMER_TAG_COLOUR(int gamerTagId, int component, int hudColorIndex)
Hash
0x613ED644950626AE

Open in the interactive natives reference