Client-sidedExports
Electron Anticheat provides client-side for common tasks
These exports are only available on the client side.
Recording & Taking Screenshots
exports["ElectronAC"]:screenshotPlayer(source, reason, details, overrideWhitelist)Arguments
-
cb(function):
Callback function that receives the response data. -
url(string):
The endpoint URL to which the screenshot will be uploaded. -
field(string):
The name of the file field when uploading (e.g. “files[]”).
exports["ElectronAC"]:recordPlayer(source, reason, details, overrideWhitelist)Arguments
-
cb(function):
Callback function that receives the response data. -
url(string):
The endpoint URL to which the screenshot will be uploaded. -
field(string):
The name of the file field when uploading (e.g. “files[]”). -
duration(number):
Duration of the recording in milliseconds
Here is an example sending a screenshot and a recording to a discord wbehook:
RegisterCommand("screenshot", function()
exports["ElectronAC"]:screenshotPlayer(
function(data)
print("screenshot created url:", data.attachments[1].url)
end,
"YOUR WEBHOOK_URL",
"files[]"
)
end, false)
RegisterCommand("recording", function()
exports["ElectronAC"]:recordplayer(
function(data)
print("recording created url:", data.attachments[1].url)
end,
"YOUR_WEBHOOK_URL",
"files[]",
5000)
end, false)