GetIsFrameworkAdmin

This commit is contained in:
MrNewb committed 2025-06-01 23:12:32 -04:00
1 parent d55c13ab31
commit 3a141cb8f2
3 files changed
+28

No files matched your search

+8
View File
@@ -14,6 +14,14 @@ Framework.GetFrameworkName = function()
return 'qb-core'
end
---This will return if the player is an admin in the framework.
---@param src any
---@return boolean
Framework.GetIsFrameworkAdmin = function(src)
if not src then return false end
return QBCore.Functions.HasPermission(src, 'admin')
end
-- Framework.GetPlayerIdentifier(src)
-- Returns the citizen ID of the player.
---@param src number