ScreenCapture - A replacement for screenshot-basic [OPEN-SOURCE]

v0.1.0

Updates

  • Initial screenhost-basic backwards compatibility
  • Support for form-data to the http handler.

screenhost-basic compatibility example:

exports['screencapture']:requestScreenshotUpload('https://api.fivemanage.com/api/image', 'file', {
        headers = {
            ["Authorization"] = API_TOKEN
        },
        encoding = "webp"
    }, function(data)
        local resp = json.decode(data)
        print(resp.url);
        TriggerEvent('chat:addMessage', { template = '<img src="{0}" style="max-width: 300px;" />', args = { resp.url } })
    end)