Disabling commands in console and server chat

First off I have looked and cannot find this posted anywhere, that being said I feel this is a very common thing so if I overlooked a post I apologize.
I want to disable the majority of commands in both console and chat. In fact the only command that I still want to use on the server is the set job commands for esx. I want to disable things like /tp x y z and so forth. Is there an easy way to disable these commands for all users, including myself? I intend to add in a menu type permission support for admins and myself I just don’t want it done through commands/chat.

1 Like

Look into where the commanda are made or registered inside the EssentialMode or es_extended scripts and dekete them.

Or just the recommendation/help section where they prompt the user.

Yeah I’ve double checked every single .lua file in my server and I don’t see these basic commands being created anywhere. Makes me think it’s a fivem direct thing and not anything to do with es/esx.

1 Like

There should be a resource for disabling specific commands. Search for it online

Have not yet been able to find anything. Anyone have any links or ideas?

2 Likes

The commands you want to comment out are located at:

es_extended / server / commands.lua

Found it, not sure how I overlooked that. Thank you so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.