fixed qbcore GetIsFrameworkAdmin method

This commit is contained in:
Sinaps Dev committed 2026-01-28 23:49:08 +01:00
1 parent 0f2e41d72f
commit f753b8ae97
1 file changed
+4 -1
+4 -1
View File
@@ -26,7 +26,10 @@ end
---@return boolean
Framework.GetIsFrameworkAdmin = function(src)
if not src then return false end
return QBCore.Functions.HasPermission(src, 'admin')
local isAdmin = QBCore.Functions.HasPermission(src, 'admin')
local isGod = QBCore.Functions.HasPermission(src, 'god')
local isAceAllowed = IsPlayerAceAllowed(src, 'command')
return isAdmin or isGod or isAceAllowed
end
---@description This will return the citizen ID of the player.