Merge pull request #180 from SinapsDev/main

Fixed GetIsFrameworkAdmin method for QBCore framework
This commit is contained in:
MrNewb authored and GitHub committed 2026-01-28 19:55:05 -05:00
commit e4362f1a90
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.