Exports

Use Electron AC from your scripts

Note: If you renamed your anticheat resource, you can still use the name ElectronAC when triggering exports!

These exports can only be invoked by server-sided scripts

Temporarily whitelisting players

exports["ElectronAC"]:tempWhitelistPlayer(sourcec,module)
exports["ElectronAC"]:tempUnWhitelistPlayer(source,module)

source: number The network Id of the player you wish to (un)whitelist

module: string An anticheat module, for example: antiTeleport, antiNoclip, antiVehicle

Punishing players


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