Exports

Punishments

Issue moderation actions from your own scripts. Bans are recorded on the Solar dashboard using the same ban authority the anticheat itself uses, so they also block future reconnects and appear in your dashboard ban list.
SolarAC__KickPlayerServer
SolarAC__KickPlayer(src, reason?)

Immediately drops a connected player with an optional reason message shown to them.

ParameterTypeDescription
srcnumberConnected player id.
reasonstring?Kick message. Falls back to a default Solar message.

Returns: boolean — true if a valid player id was given

lua
exports['SolarAC']:SolarAC__KickPlayer(src, 'AFK too long')
SolarAC__BanPlayerServer
SolarAC__BanPlayer(src, reason?, opts?)

Records a ban on the dashboard against all of the player's identifiers, then drops them. The ban persists and blocks reconnects via Solar's connect-time ban check.

ParameterTypeDescription
srcnumberConnected player id.
reasonstring?Ban reason stored on the dashboard. Defaults to "Manual ban".
optstable?{ duration = "permanent" | string, delay = ms before the player is dropped }

Returns: boolean — true if a valid player id was given

lua
-- Permanent ban, dropped after a 2s grace so a webhook / log can fire first
exports['SolarAC']:SolarAC__BanPlayer(src, 'Cheating - mod menu', {
  duration = 'permanent',
  delay = 2000,
})
SolarAC__WarnPlayerServer
SolarAC__WarnPlayer(src, reason?)

Records a warning against the player on the dashboard. Silent in player chat by design; visible to staff on the dashboard and in webhooks.

ParameterTypeDescription
srcnumberConnected player id.
reasonstring?Warning reason. Defaults to "Manual warning".

Returns: boolean — true if a valid player id was given

lua
exports['SolarAC']:SolarAC__WarnPlayer(src, 'Minor rule break - verbal given')
Bans and warnings require an active dashboard connection (a valid, non-dev license). If the dashboard is disabled, KickPlayer still drops the player but the ban / warn record is skipped.
Server-side only. These are server exports — a client cannot invoke them, so a cheater can't self-unban or fake a kick. Call them from trusted server scripts (a staff command, an event handler, your own detection logic).