Record
Parameters
- Source - Player server ID
- Time - Recording duration in seconds
Usage
exports['resourcename']:RecordVideo(Source, Webhook, Time)
Note: Replace 'resourcename' with the name of xeroshield.
Return Value
Returns nil or the video URL.
Example
local videoUrl = exports['xeroshield']:RecordVideo(1, "https://discord.com/api/webhooks/", 30)
if videoUrl then
print("Video recorded: " .. videoUrl)
else
print("Failed to record video")
end
This will record the player with server ID 1 for 30 seconds and return the video URL.