guiLabelSetVerticalAlign | Multi Theft Auto: Wiki Skip to content

guiLabelSetVerticalAlign

Client-side
Server-side
Shared

This function sets the vertical alignment of a text label.

OOP Syntax Help! I don't understand this!

  • Method:gui-label:setVerticalAlign(...)
  • Variable: .verticalAlign

Syntax

bool guiLabelSetVerticalAlign ( ​gui-label theLabel, ​string align )
Required arguments
  • theLabel: The text label to set the vertical alignment on.
  • align: The alignment type. Valid type strings are top, center or bottom.

Returns

Returns true on success, false otherwise.

  • bool: result

Code Examples

client
local label = guiCreateLabel(300,200,100,500,"Text",false)
guiLabelSetVerticalAlign(label,"bottom")

See Also

GUI Functions