Skip to content

Client Events

These events are provided for compatibility with other chat systems and can be triggered by other resources.

Legacy event for adding command suggestions.

RegisterNetEvent('chat:addSuggestion', function(data)
-- data contains the suggestion information
end)

Event Data:

{
name = string,
help = string,
params = table
}

Example:

RegisterNetEvent('chat:addSuggestion', function(data)
print("Command suggestion added: " .. data.name)
end)

Legacy event for adding multiple command suggestions.

RegisterNetEvent('chat:addSuggestions', function(suggestions)
-- suggestions is an array of suggestion objects
end)

Event Data:

  • suggestions (table) - Array of suggestion objects

Example:

RegisterNetEvent('chat:addSuggestions', function(suggestions)
for _, suggestion in ipairs(suggestions) do
print("Suggestion: " .. suggestion.name)
end
end)

These events are used internally by the script and should not be triggered manually. They can be listened to for integration purposes.

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.