Issue with TriggerEvent('chat:clear') Server Sided

Here is my script:

server.lua

RegisterCommand('clearchat', function(source, args)
	if IsPlayerAceAllowed(source, "command.clearchat") then
		TriggerEvent('chat:clear')
    	TriggerClientEvent("chatMessage", -1, "^4Chat cleared by ID:^1 ".. source)
	else
		TriggerClientEvent('chatMessage', source, '^1ERROR: You don\'t have the required permissions!')
	end
end, false)

client.lua

Citizen.CreateThread(function()
	TriggerEvent('chat:addSuggestion', '/clearchat', 'Clears chat')
end)

For some odd reason it skips the TriggerEvent('chat:clear')

Is there any fix to this?

Fixed by changing TriggerEvent('chat:clear') to TrigerClientEvent('chat:clear', -1)