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