Chat command suggestion parameters are broken

When trying to add command suggestions using the following code:

TriggerEvent('chat:addSuggestion', '/command', 'Command description text', {'param1', 'param2'})

All I get is this error in the client console

and the suggestion/command autocomplete won’t popup in the chat.

Removing the parameters from the event works fine and the command is registered, but of course no parameters are provided…

Thanks for letting us know. We agree there is an issue and we’re looking into it.

2 Likes

Parameters seemingly need to be like this:

{ { name="paramName", help="description"}, ... }
3 Likes

ahh alright, thanks!