Screenshot

Parameters

  • Source - Player server ID

Usage

exports['resourcename']:TakeScreenshot(Source, Webhook)

Note: Replace 'resourcename' with the name of xeroshield.

Return Value

Returns nil or the screenshot URL.

Example

local screenshotUrl = exports['xeroshield']:TakeScreenshot(1, "https://discord.com/api/webhooks/")

if screenshotUrl then
    print("Screenshot taken: " .. screenshotUrl)
else
    print("Failed to take screenshot")
end

This will take a screenshot of the player with server ID 1 and return the screenshot URL.

Screenshot | Documentation | XeroShield - FiveM AntiCheat