Update commands.lua

fixed leave priority command
This commit is contained in:
Andyyy7666
2022-04-08 19:26:41 +02:00
committed by GitHub
parent 938d947825
commit 550cee48dd

View File

@@ -61,6 +61,7 @@ if config.enablePriorityCooldown then
if string.find(priority, "Active") then
if string.find(priority, GetPlayerName(source)) then
priority = string.gsub(priority, ", " .. GetPlayerName(source), "")
priority = string.gsub(priority, GetPlayerName(source), "")
TriggerClientEvent("returnPriority", -1, priority)
end
end