addSuggestion
About
Using this export allows you to add command suggestions to your chat.
Name
addSuggestion
Parameters
string commandName, string commandDescription, object commandParameters
Examples
This example adds a command suggestion for the /command
command.
Lua Example:
-- Note, the command has to start with `/`.
exports.chat:addSuggestion('/command', 'help text', {
{ name="paramName1", help="param description 1" },
{ name="paramName2", help="param description 2" }
})
Example Result:
Last modified January 18, 2024: Added documentation for chat exports. (#234) (4bc0d0e)