From f753b8ae974d7060ca7b34bd2723efda7de29374 Mon Sep 17 00:00:00 2001 From: Sinaps Dev Date: Wed, 28 Jan 2026 23:49:08 +0100 Subject: [PATCH] fixed qbcore GetIsFrameworkAdmin method --- modules/framework/qb-core/server.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/framework/qb-core/server.lua b/modules/framework/qb-core/server.lua index 0908af9..3b9c92a 100644 --- a/modules/framework/qb-core/server.lua +++ b/modules/framework/qb-core/server.lua @@ -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.