[Release] Priority Cooldown

Can you link your config for the streetLabel/compass, and aop master thats really clean!

What are the permissions for this resource. Anyone can run the commands and i need to restrict it.

Agreed. Did you find a way how to do it yet?

Can anyone help me limit the use of this? I know most people use Ace commands but i don’t know how to use them. I want to set it to group admin only. i don’t know how to add it into the server/client lua or server.cfg
Thanks to anyone that can help!!!

Hey so I was trying to make it so that after the cool down it would say Inactive in green I thought I had the code right but it doesn’t work, could you help me please and thank you.

/ / Code / /

local cooldown = 0
local ispriority = false
local ishold = false

RegisterCommand("resetpcd", function()
    TriggerServerEvent("cancelcooldown")
end, false)

RegisterNetEvent('UpdateCooldown')
AddEventHandler('UpdateCooldown', function(newCooldown)
    cooldown = newCooldown
end)

RegisterNetEvent('UpdatePriority')
AddEventHandler('UpdatePriority', function(newispriority)
    ispriority = newispriority
end)

RegisterNetEvent('UpdateHold')
AddEventHandler('UpdateHold', function(newishold)
    ishold = newishold
end)

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if ishold == true then
			DrawText2("~w~Priority Cooldown: ~r~Priorities Are On Hold")
		elseif ispriority == false then
			DrawText2("~w~Priority Cooldown: ~r~Cooldown ~c~(".. cooldown .." m reamining)")
		elseif ispriority == true then
			DrawText2("~w~Priority Cooldown: ~r~Priority In Progress")
		elseif isOnHold == false then
			DrawText2("~w~Priority Cooldown: ~g~Inactive")
		elseif cooldown == 1 then
			DrawText2("~w~Priority Cooldown: ~g~Inactive")
		end
	end
end)

	function DrawText2(text)
        SetTextFont(4)
        SetTextProportional(1)
        SetTextScale(0.45, 0.45)
        SetTextDropshadow(1, 0, 0, 0, 255)
        SetTextEdge(1, 0, 0, 0, 255)
        SetTextDropShadow()
        SetTextOutline()
        SetTextEntry("STRING")
        AddTextComponentString(text)
        DrawText(0.16, 0.930)
    end

Any updates because i tried this and it shows “player 1” instead of their steam name.

How would I add ace permissions to this?

How can I do something to where whenever the cooldown is over it shows that the priority is inactive?

Along with that I am looking for a way to have it show the players name that submitted the priority so it will look like this.

Priority Status: Active (Player’s Name)

How can i add discord_Perms in to the priority cooldown

I add this to my server and I had my friend test it out and he did not have admin perms but he was still able to do the cammand can you fix this or tell me how?

How do i set up perms

Can you show a screenshot, not edited? I want to see where it’s at on the screen.

is there away and can change the “Priority Cooldown” part to a yellow color

dont belive you can on this version

@Scott_UK How can i add discord_Perms in to the priority cooldown

2 Questions here: How to change the color to grey to match other mods. Also how do I configure for only admins to put cooldown on?

how to police only can use this command?

fr i wanna know

How Do I Make Priority Thing To To The Top Of The Screen Ik Its In function drawtext2 but what numbers do i need to add for it to go to the top

How would I use ace permissions or any type or permissions?