mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +01:00
Update main.lua
Fixed issue with priority cooldown not showing up
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
------------------------------------------------------------------------
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
-- DO NOT EDIT IF YOU DON'T KNOW WHAT YOU'RE DOING --
|
||||||
|
-- --
|
||||||
|
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6 --
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
------------------------------------------------------------------------
|
||||||
local background = config.backgrounds[math.random(1, #config.backgrounds)]
|
local background = config.backgrounds[math.random(1, #config.backgrounds)]
|
||||||
local started = true
|
local started = true
|
||||||
|
local priorityText = nil
|
||||||
registered = false
|
registered = false
|
||||||
cash = nil
|
cash = nil
|
||||||
bank = nil
|
bank = nil
|
||||||
@@ -273,10 +279,13 @@ if config.enablePriorityCooldown then
|
|||||||
|
|
||||||
RegisterNetEvent("returnPriority")
|
RegisterNetEvent("returnPriority")
|
||||||
AddEventHandler("returnPriority", function(priority)
|
AddEventHandler("returnPriority", function(priority)
|
||||||
if config.canSeePriority[mainDepartment] then
|
priorityText = nil
|
||||||
priorityText = priority
|
for _, departmentName in pairs(config.canSeePriority) do
|
||||||
else
|
print(departmentName)
|
||||||
priorityText = nil
|
if departmentName == mainDepartment then
|
||||||
|
priorityText = priority
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user