Client Events
Client Events
Section titled “Client Events”Compatibility Events
Section titled “Compatibility Events”These events are provided for compatibility with other chat systems and can be triggered by other resources.
chat:addSuggestion
Section titled “chat:addSuggestion”Legacy event for adding command suggestions.
RegisterNetEvent('chat:addSuggestion', function(data) -- data contains the suggestion informationend)Event Data:
{ name = string, help = string, params = table}Example:
RegisterNetEvent('chat:addSuggestion', function(data) print("Command suggestion added: " .. data.name)end)chat:addSuggestions
Section titled “chat:addSuggestions”Legacy event for adding multiple command suggestions.
RegisterNetEvent('chat:addSuggestions', function(suggestions) -- suggestions is an array of suggestion objectsend)Event Data:
suggestions(table) - Array of suggestion objects
Example:
RegisterNetEvent('chat:addSuggestions', function(suggestions) for _, suggestion in ipairs(suggestions) do print("Suggestion: " .. suggestion.name) endend)Internal Events
Section titled “Internal Events”These events are used internally by the script and should not be triggered manually. They can be listened to for integration purposes.
Message Events
Section titled “Message Events”The script handles various message-related events internally. These events are primarily for the script’s own use, but you can listen to them if needed for advanced integrations.