Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 523 Bytes

screenshot-basic.md

File metadata and controls

18 lines (15 loc) · 523 Bytes

📸 screenshot-basic

Every server comes with this already if you do not have it, download the resource from here.

Use the following export.

exports['screenshot-basic']:requestScreenshotUpload('https://api.fivemerr.com/v1/media/images', 'file', {
    headers = {
        Authorization = 'YOUR_API_KEY'
    },
    encoding = 'png'
}, function(data)
    local resp = json.decode(data)
    local link = (resp and resp.url) or 'invalid_url'
    print(link)
end)