Exports
Punishments
Enforce rules by banning, warning, or kicking players directly from your scripts.
Exports need to always be invoked on ElectronAC, even if you renamed the resource.
Ban Player
Bans a player from the server and records the action in the logs.
exports["ElectronAC"]:banPlayer(source, reason, details, overrideWhitelist)Prop
Type
Warn Player
Issues a warning to a player, which is recorded in their history.
exports["ElectronAC"]:warnPlayer(source, reason, details, overrideWhitelist)Prop
Type
Kick Player
Kicks a player from the server session.
exports["ElectronAC"]:kickPlayer(source, reason, details, overrideWhitelist)Prop
Type
Removing Punishments
Remove Ban
exports["ElectronAC"]:removeBan(banId)Prop
Type
Remove Kick
exports["ElectronAC"]:removeKick(kickId)Prop
Type
Remove Warning
exports["ElectronAC"]:removeWarn(warnId)Prop
Type