/car FOR ADMINS ONLY

i need help setting up my es_admin. i want it so only admins or owners can do the /car command to spawn a car. i tried changing the code and adding “admin” and “owner” in the code. TriggerEvent(‘es:addCommand’, ‘car’, “owner”, function(source, args, user) i tried that and TriggerEvent(‘es:addCommand’, ‘car’, “admin” function(source, args, user) but neither work. please help.

Closed

If you’re having an issue with an addon, post in the original thread. Don’t create a new one.

Also, read the documentation for EssentialMode (which I assume you’re trying to use for commands) as it tells you exactly how to do something like this.

2 Likes