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

Function

guiSetFont

ClientInterface (GUI)Identical to MTA:SA

Sets a control's font: a built-in name ("default-normal", "default-small", "default-bold-small", "default-bold", "clear-normal", "sa-header", "sa-gothic") or a handle from guiCreateFont.

Syntax

bool guiSetFont(element guiElement, mixed font)

Arguments

guiElementelement
The control.
fontmixed
A name or a font.

Returns

true on success.

Example

local title = guiCreateLabel(20, 20, 400, 40, "Grove Street", false)
guiSetFont(title, "sa-header")