- Documentation
- Server functions
- textItemGetPosition
Function
textItemGetPosition
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)