Zuqaa
1
How to block the command /car for the user 
I have try this but i have error with essensial mode after…
TriggerEvent('es:addCommand', 'car', "superadmin", function(source, args, user)
TriggerClientEvent('es_admin:spawnVehicle', source, args[2])
end)
Tospik
5
You add it directly in an essential file ?
Zuqaa
6
no i have replaced the code of base by my code
1 Like
Tospik
7
Ok thanks, I think I will do the same for the /admin ! 
Yoan
9
TriggerEvent('es:addGroupCommand', 'car', "owner", function(source, args, user)
TriggerClientEvent("es_admin:spawnVehicle", source, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient permissions!")
end)
For me it’s work, in es_admin