I am using the below event
TriggerEvent('es:addAdminCommand', 'car', permission.authority, function(source, args, user)
TriggerClientEvent('es_admin:spawnVehicle', source, args[2])
end
With these locals
local permission = {
kick = 2,
normal = 0,
authority = 1,
ban = 4,
admin = 9
}
I would like to set it so that command /car requires a permission. I have tried, es:addGroupCommand es:addAdminCommand, and permission.authority. None of those worked. If I removed permission.normal, admin, or w/e I am using for the “user”, the script works. But with any type of permission set, noone not even owners can do /car.