guiLabelSetVerticalAlign | Multi Theft Auto: Wiki Skip to content

guiLabelSetVerticalAlign

Client-side
Server-side
Shared

Manual Review Required

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


This function sets the vertical alignment of a text label.

OOP Syntax Help! I don't understand this!

  • Method: guilabel:setVerticalAlign(...)
  • Variable: .verticalAlign

Syntax

bool guiLabelSetVerticalAlign ( element 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" "bottom"

Returns

  • bool: value

Returns true on success, false otherwise.

Code Examples

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

See Also

GUI Functions