Exports

Use Electron AC from your scripts

Punishing players


These exports can only be invoked by server-sided scripts

TriggerEvent("ElectronAC:BanPlayer",source, reason, details)
TriggerEvent("ElectronAC:WarnPlayer",source, reason, details)
TriggerEvent("ElectronAC:KickPlayer",source, reason, details)

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

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

Last updated