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

Function

textItemGetPosition

ServerText displaysIdentical to MTA:SA

Returns a text item's position (0-1 relative to the screen).

Syntax

float, float textItemGetPosition(textitem theTextItem)

Arguments

theTextItemtextitem
The text item.

Returns

x, y.

Example

local item = textCreateTextItem("A", 0.25, 0.75)
local x, y = textItemGetPosition(item)

See also