Ui::setTextWrap

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

It sets the text in a specified box and wraps the text if it exceeds the boundries. Both values are for X axis. Useful when positioning text set to center or aligned to the right.

start - left boundry on screen position (0.0 - 1.0)
end - right boundry on screen position (0.0 - 1.0)

Syntax

mp.game.ui.setTextWrap(start, end);

Required Arguments

  • start: float
  • end: float

Return value

  • Undefined

Example

// todo

See also