Skip to Content
ResourcesChatEventschat:removeSuggestion

Triggering this event removes an existing command suggestion, matched by command name, that was previously added with chat:addSuggestion. Use it when a permission is revoked at runtime or a resource stops, so players no longer see an autocomplete entry for a command they can’t run.

Event Name

chat:removeSuggestion

Parameters

  • string commandName: The command whose suggestion should be removed, including the leading /

Example

TriggerEvent('chat:removeSuggestion', '/command')