For developers
Send messages and suggestions to NS Chat from your own scripts.
NS Chat provides the standard chat resource, so the usual FiveM chat events work as they do with the default chat.
Send a message
1TriggerClientEvent('chat:addMessage', source, {2 args = { 'Server', 'Welcome to the city!' }3})Add a command suggestion
1TriggerEvent('chat:addSuggestion', '/report', 'Send a report to staff', {2 { name = 'message', help = 'What happened?' }3})Remove a suggestion
1TriggerEvent('chat:removeSuggestion', '/report')Note
NS Chat-specific exports and events will be listed here as they are published.
