Returns true if the player is an admin or higher.
Checks on the group (ESX) or permission (QB) that can be found in settings.lua -> Defaults -> ADMIN_...
p.isAdmin()
local p = FM.player.get(1) if p.isAdmin() then -- do something end
Last updated 1 year ago
Was this helpful?