1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-09 21:31:55 +02:00
parent 55adb0ec7f
commit 1f0a23516e
46 changed files with 2671 additions and 9 deletions

View file

@ -0,0 +1,25 @@
function StaffCheck(source)
local staff = false
if Config.Core:upper() == 'ESX'then
local player = Core.GetPlayerFromId(source)
local playerGroup = player.getGroup()
for i, Group in ipairs(Config.AdminGroups) do
if playerGroup == Group then
staff = true
break
end
end
elseif Config.Core:upper() == 'QBCORE' then
for i, Group in ipairs(Config.AdminGroups) do
if Core.Functions.HasPermission(source, Group) or IsPlayerAceAllowed(source, Group) or IsPlayerAceAllowed(source, 'command') then
staff = true
break
end
end
end
return staff
end