Перейти к содержанию

Ui::getTextSubstring

Материал из RAGE MP Wiki Archive
Версия от 14:49, 20 мая 2017; imported>StreetGT
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.ui.getTextSubstring(text, position, length);</syntaxhighlight>

Required Arguments

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

Return value

  • String

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also