ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiLabelSetHorizontalAlign

Function

guiLabelSetHorizontalAlign

ClientInterface (GUI)Identical to MTA:SA

Aligns a label's text horizontally and optionally wraps lines.

Syntax

bool guiLabelSetHorizontalAlign(gui-label theLabel, string align [, bool wordwrap = false])

Arguments

theLabelgui-label
The label.
alignstring
"left", "center" or "right".
wordwrapbool, optional = false
Word wrap.

Returns

true on success.

Example

guiLabelSetHorizontalAlign(label, "center", true)