Exports

Use Electron AC from your scripts

Punishing players


These exports can only be invoked by server-sided scripts

exports["ElectronAC"]:banPlayer(source, reason, details, overrideWhitelist)
exports["ElectronAC"]:warnPlayer(source, reason, details, overrideWhitelist)
exports["ElectronAC"]:kickPlayer(source, reason, details, overrideWhitelist)

source: number The network Id of the player you wish to punish

reason: string An arbitrary string containing a reason to appear in logs and the dashboard

details: string Arbitrary string containing extra details

overrideWhitelist: boolean If this value is set to true, even whitelisted players will get effected when triggering this event

Events


These event listeners are only available on the server

AddEventListener("ElectronAC:playerBanned", function(source, reason, details, automatic)
    --your code
end)
AddEventListener("ElectronAC:playerWarned", function(source, reason, details, automatic)
    --your code
end)
AddEventListener("ElectronAC:playerKicked", function(source, reason, details)
    --your code
end)

source: number The network Id of the player you wish to punish

reason: string An arbitrary string containing a reason to appear in logs and the dashboard

details: string Arbitrary string containing extra details

automatic: boolean True when a players has been banned autonomously, false when player has been banned by an export, or someone using the panel.

Last updated