Garry's Mod Wiki

Garry's Mod Wiki

  string utf8.sub( string string, number StartPos, number EndPos = nil )

Description

A UTF-8 compatible version of string.sub.

Avoid using this function on large strings every tick/frame, as it may cause lags.

Arguments

1 string string
The string you'll take a sub-string out of.
2 number StartPos
The position of the first character that will be included in the sub-string.
3 number EndPos = nil
The position of the last character to be included in the sub-string. It can be negative to count from the end.

Returns

1 string
The substring.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...