guiLabelSetColor | Multi Theft Auto: Wiki Skip to content

guiLabelSetColor

Client-side
Server-side
Shared

Pair: guiLabelGetColor

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows you to set the color of a GUI label.

Syntax

guiLabelSetColor ( )

Code Examples

client

This example creates a label with text "Hello World!" and sets it to a random color.

local myLabel = guiCreateLabel ( 0.45, 0.48, 0.2, 0.5, "Hello world", true )
guiLabelSetColor ( myLabel, math.random(0, 255), math.random(0, 255), math.random(0, 255) )

See Also

GUI Functions