nanos world API Reference Unofficial documentation
Function Shared Native

string.format

Returns a formatted version of its variable number of arguments following the description given in its first argument.

Syntax

Lua
string.format(format, formatParameters)

Parameters

Name Type Default Description
format string The string to be formatted
formatParameters number Values to be formatted into the string.

Returns

  • string