Skip to main content

Ui::getTextSubstring

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

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

Required Arguments

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

Return value

  • String

Example

```js // todo ```

See also