SetMpGamerTagColour
DocsSetMpGamerTagColour(gamerTagId, component, hudColorIndex)Description
Sets a gamer tag's component colour
Parameters
| Name | Type | Description |
|---|---|---|
gamerTagId | int | a gamerTagId obtained using for example: [`CREATE_FAKE_MP_GAMER_TAG`](#\_0xBFEFE3321A3F5015). |
component | int | a component id, see the full list here: [link](https://docs.fivem.net/docs/game-references/gamer-tags/#components-list) |
hudColorIndex | int | a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/) |
Returns
voidThis native does not return a value.
Examples
Official
local playerPed = PlayerPedId() --get our players ped
local playerName = GetPlayerName(PlayerId()) --get our players name
local gamerTagId = CreateFakeMpGamerTag(playerPed, playerName, 0, 0, "", 0) --create a gamer tag
SetMpGamerTagColour(gamerTagId, 0, 129) --set component 0(GAMER_NAME) color to 129(HUD_COLOUR_YOGA)