mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +01:00
Update commands.lua
fixed issue with priority cooldown and updated aop script
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
------------------------------------------------------------------------
|
||||||
|
------------------------------------------------------------------------
|
||||||
local aop = config.defaultAop
|
-- DO NOT EDIT IF YOU DON'T KNOW WHAT YOU'RE DOING --
|
||||||
|
-- --
|
||||||
|
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6 --
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
if config.enableAopCommand then
|
if config.enableAopCommand then
|
||||||
local priority = "Priority Status: ~g~Available"
|
local aop = config.defaultAop
|
||||||
RegisterNetEvent("getAop")
|
RegisterNetEvent("getAop")
|
||||||
AddEventHandler("getAop", function()
|
AddEventHandler("getAop", function()
|
||||||
local player = source
|
local player = source
|
||||||
@@ -30,6 +34,7 @@ if config.enableAopCommand then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if config.enablePriorityCooldown then
|
if config.enablePriorityCooldown then
|
||||||
|
local priority = "Priority Status: ~g~Available"
|
||||||
RegisterNetEvent("getPriority")
|
RegisterNetEvent("getPriority")
|
||||||
AddEventHandler("getPriority", function() -- update priority
|
AddEventHandler("getPriority", function() -- update priority
|
||||||
local player = source
|
local player = source
|
||||||
|
|||||||
Reference in New Issue
Block a user