isAdmin

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()

Example

local p = FM.player.get(1)

if p.isAdmin() then
    -- do something
end

Last updated

Was this helpful?