I was wondering if there was some way you could use es_admin and if you was a certain perm level then you could use that livery like the last livery or last two would be restricted.
You can do anything. I recommand to use permission for command and global right.
Here, it’s more like a rank in a job.
So create your own rank system should be enough
How would I do this?
By learning from EssentialMode should be a good starting
so i what es_admin command would it be
No. You need to create the environment first. Like the rank manager.
then you could add command like /rank add … /rank promote or whatever
Is there a template to do this or something?
Would this work?
TriggerEvent(‘es:addGroupCommand’, ‘’, “admin”, function ManageRestrictVehLivery(veh)
if permission_level < permission_levels[“10”] then
if DoesEntityExist(veh) then – and not IsEntityDead(veh)
local model = GetEntityModel(veh)
if (GetVehicleClass(veh) == 18 and model ~= GetHashKey(“PBUS”)) or model == GetHashKey(“POLMAV”) or model == GetHashKey(“CVPIVOL”) then
local ped_l = GetPlayerPed(-1)
if GetPedInVehicleSeat(veh, -1) == ped_l then
local count_liv = GetVehicleLiveryCount(veh)
if count_liv > -1 then
local liv = GetVehicleLivery(veh)
if ((permission_level >= permission_levels[“5”] and permission_level < permission_levels[“10”]) and liv == count_liv - 1) or (permission_level < permission_levels[“5”] and (liv == count_liv - 1 or liv == count_liv - 2)) then
SetVehicleLivery(veh, 0)
end
end
end
end
end
end
end
I can’t read this man, seriously…
https://hastebin.com/
Or use markdown : https://support.discordapp.com/hc/en-us/article_attachments/211601548/FixdHelloWorldMark.png
Replace markdown by your language (Lua / csharp / cpp etc…)
I commented a bit.
You need to learn the basics : https://hastebin.com/noyimanono.lua
All I have is just this one file.
Also I don’t necessarily want to have it as a command.
What do you waiting for then ? Start
well I don’t know how I would set it up with es admin