ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. textItemSetPosition

Function

textItemSetPosition

ServerText displaysIdentical to MTA:SA

Moves a text item (position 0-1 relative to the screen).

Syntax

bool textItemSetPosition(textitem theTextItem, float x, float y)

Arguments

theTextItemtextitem
The text item.
xfloat
X from 0 to 1.
yfloat
Y from 0 to 1.

Returns

true on success.

Example

local item = textCreateTextItem("Info", 0.5, 0.5)
textItemSetPosition(item, 0.5, 0.2)

See also