Has anyone made a priority cool down timer for server side? So when my dispatchers get a priority we can do a cool down to show we aren’t accepting priority scenarios at the moment until its finished?
I already have made this, if the internet on my PC wants to actually work I will release it xD.
1 Like
that would be awesome I haven’t seen one at all
If you have es_admin2, this is a quick script I threw together that is very simple.
You can have anyone who is assigned to the group admin, to type /rtimer and it will respect the priority timer.
I am very new to .lua so forgive me if its basic af.
TriggerEvent('es:addGroupCommand', 'rtimer', "admin", function()
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "15 minutes left ^0until priorities are allowed.")
Citizen.Wait(0)
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "Those who try and conduct a priority ^1before^0 the timer ends will be ^3KICKED/BANNED.")
Citizen.Wait(300000)
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "10 minutes left ^0until priorities are allowed.")
Citizen.Wait(0)
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "Those who try and conduct a priority ^1before^0 the timer ends will be ^3KICKED/BANNED.")
Citizen.Wait(300000)
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "5 minutes left ^0until priorities are allowed.")
Citizen.Wait(0)
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "Those who try and conduct a priority ^1before^0 the timer ends will be ^3KICKED/BANNED.")
Citizen.Wait(300000)
TriggerClientEvent("chatMessage", -1, "^1PRIORITY", {255,255,255}, "^2Priorities are now allowed.")
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)
1 Like
hmmm I will give it a test, I appreciate your time.
I really hate to sound stupid, but where does this go?