Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to main.ts | Imgur API integration #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ogidevs
Copy link

@ogidevs ogidevs commented Feb 8, 2023

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

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.
THIS HAS TO BE DONE BEFORE RUNNING THE screenshot-basic for the first time!
Also change webhook url on every other resource that is using screenshot-basic so for example in qb-phone change the webhook option so it looks like this:
Config.Webhook = "imgur"
ogidevs added a commit to ogidevs/qb-phone that referenced this pull request Feb 9, 2023
As we all know discord cdn started blocking fivem's request for webhooks, so here is another solution.

FOR THIS TO WORK YOU WILL NEED MY FORK OF SCREENSHOT-BASIC:
citizenfx/screenshot-basic#41
Do the necessary changes for screenshot-basic and you are all set.
@AvarianKnight
Copy link

This seems a bit weird, you can already do this with requestScreenshotUpload reference 4de312e

@Dalrae1
Copy link

Dalrae1 commented Jul 7, 2023

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

@PsychoShock
Copy link

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

@gullithisouza
Copy link

Exists a resource free, called Fivemanager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants