fixed qbcore GetIsFrameworkAdmin method
This commit is contained in:
1 parent
0f2e41d72f
commit
f753b8ae97
1 file changed
+4
-1
@@ -26,7 +26,10 @@ end
|
|||||||
---@return boolean
|
---@return boolean
|
||||||
Framework.GetIsFrameworkAdmin = function(src)
|
Framework.GetIsFrameworkAdmin = function(src)
|
||||||
if not src then return false end
|
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
|
end
|
||||||
|
|
||||||
---@description This will return the citizen ID of the player.
|
---@description This will return the citizen ID of the player.
|
||||||
|
|||||||
Reference in new issue
Block a user