Functions/DarkRP/Client/textWrap

From DarkRP
Jump to navigation Jump to search
Function
Function name DarkRP.textWrap(string text, string font, number width)
Description:
Wrap a text around when reaching a certain width.
Returns: string text
Part of Library: DarkRP
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Client/textWrap]DarkRP.textWrap[/url][/b]

Function parameters[edit]

  1. text (string)
  2. The text to wrap.

  3. font (string)
  4. The font of the text.

  5. width (number)
  6. The maximum width in pixels.


Function return values[edit]

  1. text (string)
  2. The wrapped string.