Server Exports

GetAllAdminGroups

Return all the admin groups from Config.AdminGroups

---@return table
local adminGroups = exports["FAdmin"]:GetAllAdminGroups()

Example:

{
    "owner",
    "_dev",
    "gstaff",
    "gi",
    "gl",
    "admin",
    "mod",
    "helper"
}

IsAdminPlayer

To verify if the player is an admin

---@param source number
---@return boolean
local isAdmin = exports["FAdmin"]:IsAdminPlayer(source)

IsAdministratorInService

To verify if the player is an admin and if he is in service

IsDevPlayer

To verify if the player is a developer

HasPermission


Example:

Permissions listed in Config.Permissions

GetPlayerCache

To get informations about a player even if they are disconnected

GetPlayerPermanentId

GetPlayerPermanentIdByIdentifier

GetPlayerRockstarIdentifierByPermanentId

Mis à jour