Ui::getTextSubstring: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
Line 15: Line 15:
{{Ui_s_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 14:49, 20 May 2017

Returns a substring of a specified length starting at a specified position.

Example:
// Get 'STRING' text from 'MY_STRING'
subStr = UI::_GET_TEXT_SUBSTRING('MY_STRING', 3, 6);

Syntax

mp.game.ui.getTextSubstring(text, position, length);

Required Arguments

  • text: String
  • position: int
  • length: int

Return value

  • String

Example

// todo

See also