screenshot-basic
screenshot-basic copied to clipboard
Update to main.ts | Imgur API integration
THIS HAS TO BE DONE BEFORE BUILDING THE screenshot-basic for the first time!
For this to work you will need an account on Imgur. Create an application and get the Client-ID which has to be put in ui/src/main.ts - line 204.
Also change webhook url on every other resource that is using screenshot-basic.
For example in qb-phone change the webhook option so it looks like this: Config.Webhook = "imgur"
Also when uploading images to Imgur, data that is received is different than one received from discord webhooks. So you'll have to change that as well. ( data.data.link for a direct link to the image ;) )
This seems a bit weird, you can already do this with requestScreenshotUpload
reference https://github.com/citizenfx/screenshot-basic/commit/4de312e3cba964d77d122b91cf25494cd3783cce
Avarian is right, you are already able to do this with the current code.
This can be close since imgur is not valid on FiveM anymore.
Exists a resource free, called Fivemanager