chat:addSuggestion

About

Triggering this event allows you to add command suggestions to your chat.

Name

chat: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 `/`.
TriggerEvent('chat:addSuggestion', '/command', 'help text', {
    { name="paramName1", help="param description 1" },
    { name="paramName2", help="param description 2" }
})
C# Example:
TriggerEvent("chat:addSuggestion", "/command", "help text", new[]
{
    new { name="paramName1", help="param description 1" },
    new { name="paramName2", help="param description 2" }
});

Example Result:

screenshot-1