[API/dev resource] screenshot-basic - make screenshots of clients' games!

Good,
Thanks to @jsfour we have managed to fix the gcphone with screenshot.

  1. Install this version of Screenshot-Basic ( GitHub - jonassvensson4/screenshot-basic: FiveM client screenshot resource - Imgur, crop options and headers support)
  2. GcPhone client.lua change lines 754-759 for:
 exports['screenshot-basic']:requestScreenshotUpload(data.url, data.field,{
        headers = {
          ['authorization'] = string.format('Client-ID %s', 'ID IMGUR'),
          ['content-type'] = 'multipart/form-data'
        }
      },function(data)
        local resp = json.decode(data)
        DestroyMobilePhone()
        CellCamActivate(false, false)
        cb(json.encode({ url = resp.data.link  }))
        PhonePlayAnim('text', false, true)
      end)
  1. gcphone config.json lines 38-39 change for:
  "fileUploadService_Url": "https://api.imgur.com/3/upload",
  "fileUploadService_Field": "imgur",
  1. enjoy
2 Likes