setMpGamerTagColour
SET_MP_GAMER_TAG_COLOUR0x613ED644950626AEThe 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.
setMpGamerTagColour(
gamerTagId: number,
component: number,
hudColorIndex: number
): voidsetMpGamerTagColour(
gamerTagId: integer,
component: integer,
hudColorIndex: integer
)Usage
JavaScript
setMpGamerTagColour(gamerTagId, component, hudColorIndex);Lua
setMpGamerTagColour(gamerTagId, component, hudColorIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
gamerTagId | int | number | integer |
component | int | number | integer |
hudColorIndex | int | number | integer |
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