Label::color

From RAGE Multiplayer Wiki
Revision as of 17:03, 4 September 2020 by Leinader (talk | contribs) (Leinader)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Updates the color of a created label.

Number label.color

Updates the color of the label through the command /labelcolor

mp.events.addCommand("labelcolor", (player, _, colorR, colorG, colorB, colorAlpha) => {
startLabel.color = parseInt(colorR, colorG, colorB, colorAlpha);
player.outputChatBox(`You have updated the color of the label to: ${colorR} ${colorG} ${colorB} ${colorAlpha}`);
});