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__IsPlayerAdminServerSolarAC__IsPlayerAdmin(src)
Returns whether the player is a recognised Solar admin (on your dashboard admin list, or authorized through txAdmin).
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
Returns: boolean
lua
if exports['SolarAC']:SolarAC__IsPlayerAdmin(src) then
-- show your staff menu
endSolarAC__GetAdminPermissionsServerSolarAC__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.
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
Returns: table — permission keys (or a full-access marker)
SolarAC__IsTxAdminServerSolarAC__IsTxAdmin(src)
Returns whether the player is currently authorized through txAdmin (their web-panel auth is recognised and whitelisted by Solar).
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected 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.