screenshot-basic icon indicating copy to clipboard operation
screenshot-basic copied to clipboard

Update to main.ts | Imgur API integration

Open ogidevs opened this issue 2 years ago • 4 comments

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 ;) )

ogidevs avatar Feb 08 '23 20:02 ogidevs

This seems a bit weird, you can already do this with requestScreenshotUpload reference https://github.com/citizenfx/screenshot-basic/commit/4de312e3cba964d77d122b91cf25494cd3783cce

AvarianKnight avatar Apr 12 '23 15:04 AvarianKnight

Avarian is right, you are already able to do this with the current code.

Dalrae1 avatar Jul 07 '23 16:07 Dalrae1

This can be close since imgur is not valid on FiveM anymore.

PsychoShock avatar Jul 09 '24 04:07 PsychoShock

Exists a resource free, called Fivemanager

gullithisouza avatar Sep 15 '24 16:09 gullithisouza