utfSeek | Multi Theft Auto: Wiki Skip to content

utfSeek

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 the byte position at specified character position.

Syntax

int utfSeek ( string theString, int position )
Required Arguments
  • theString: The string .
  • position: An int with the specified character position.

Returns

  • int: value

Returns an int if the function was successful, false otherwise.

Code Examples

shared
local teststring = "Hello World"
local testseek = utfSeek ( teststring, 5 )
outputChatBox ( testseek )