How do i Remove the Line From essentialmode where it says “invalidcommand” I just want to get rid of it so it doesnt say it at all. I was looking online and i think its in the “server” Section but i cant find it
Probably some checking ESX does when chatMessage
is fired. Maybe check the code and see where it is being fired.
My guess is that it is something being thrown due to a command not being registered via the ESX method or something.
Well from another topic on the fourm, its says to go into the “command Handler” But i dont know where it is and to edit this
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)
Don’t edit that. That gets called when arguments provided in a command is < what is expected.
So, How do Register the Command to not warn me?
Screenshot exactly what shows when it prints in chat.
The Problem Is i dont even know where those lines are in essentialmode>server I dont know what file its in
I didn’t say once to edit anything in essentialmode, if anything, it is something with ESX.
Anyway, where is this screenshot?
Also, don’t jump between topics. Keep it to this topic.
Invalid command entered There its not a screenshot.
Hmm, yea. This even doesn’t look like it’s being registered, so I don’t know why it’s being triggered. But nothing should be being triggered.
@Kanersps cc
Huh? If you don’t want the messages just handle the invalid command handler and cancel it?
Ok, But where do i do that?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.