Invalid command entered

Any script so it doesn’t show the command when someone does an invalid command and them messages them saying incorrect. I think there is one just can’t find it

@Dante.K is this what your looking for? Essentialmode invalid command handler.

AddEventHandler(‘es:invalidCommandHandler’, function(source, args, user)
TriggerClientEvent(‘chatMessage’, source, “”, {0, 0, 200}, “^1^*Unknown command^r^0, type ^2/help^0 for a list.”)
CancelEvent()
end)

Yeah thanks alot mate really appreciate

Is that client or server side?

It’s server side. / Commands are always server side, and so would be the invalid command handler.

confused i added this in my essentialmode server.lua and it makes my game not register my player anymore