utfSub | Multi Theft Auto: Wiki Skip to content

utfSub

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


The function returns a sub string, from the specified positions on a character.

Syntax

string utfSub ( string theString, int Start, int End )
Required Arguments
  • theString: The string .
  • Start: An int with the start position.
  • End: An int with the end position.

Returns

  • string: value

Returns a string if the function was successful, false otherwise.

Code Examples

shared
local mystring = "Example String"
outputChatBox( utfSub( mystring, 9, 15 ) )