Triggering this event allows you to add command suggestions to your chat.
chat:addSuggestion
string commandName, string commandDescription, object commandParameters
This example adds a command suggestion for the /command
command.
-- 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" }
})
TriggerEvent("chat:addSuggestion", "/command", "help text", new[]
{
new { name="paramName1", help="param description 1" },
new { name="paramName2", help="param description 2" }
});
setImmediate(() => {
emit('chat:addSuggestion', '/command', 'help text', [
{name:"paramName1", help:"param description 1"},
{name:"paramName1", help:"param description 2"}
]);
});