Exports

Admin Checks

Read-only helpers to ask whether a player is recognised as staff by Solar's admin menu / txAdmin integration. Use them to gate your own staff tools off the same source of truth the anticheat uses.
SolarAC__IsPlayerAdminServer
SolarAC__IsPlayerAdmin(src)

Returns whether the player is a recognised Solar admin (on your dashboard admin list, or authorized through txAdmin).

ParameterTypeDescription
srcnumberConnected player id.

Returns: boolean

lua
if exports['SolarAC']:SolarAC__IsPlayerAdmin(src) then
  -- show your staff menu
end
SolarAC__GetAdminPermissionsServer
SolarAC__GetAdminPermissions(src)

Returns the granular permission set granted to an admin — the same catalog the in-game admin menu uses (self / players / punishments / monitoring / spawning / records). Legacy full-access admins return a full-access marker.

ParameterTypeDescription
srcnumberConnected player id.

Returns: table — permission keys (or a full-access marker)

SolarAC__IsTxAdminServer
SolarAC__IsTxAdmin(src)

Returns whether the player is currently authorized through txAdmin (their web-panel auth is recognised and whitelisted by Solar).

ParameterTypeDescription
srcnumberConnected player id.

Returns: boolean

These are read-only — they only report Solar's existing admin state and can't grant it. Admin status itself is established by your dashboard admin list and txAdmin, both validated server-side, so a player can't make IsPlayerAdmin return true for themselves.