jaimeadf / discord-screenshot

A resource for FiveM that captures the screen of a player and uploads it to a discord webhook.
MIT License
69 stars 24 forks source link

Problem when trying to take screenshot #1

Closed AgenChicken24 closed 3 years ago

AgenChicken24 commented 3 years ago

So I am trying to use it in the gcphone that I have but when I try to take a screenshot I get this error but the sending images with screenshot-basic works fine I am using a PHP file that sends the photos to a folder but I can't figure it out image this is the error this is the code image and this is when I am trying to trigger it with the command image

jaimeadf commented 3 years ago

The first error is because the exports can only be called in the server. The second one occurs because screenshot-basic uses http requests to send the image data to the server and FiveM blocks any request to localhost. You can bypass this connecting with your local ip adress that you can get typing ipconfig in a cmd.

image

AgenChicken24 commented 3 years ago

Well ty. But I have to say that I am using gcphone and the sending images option works fine and it's on a local host using php and xamp. But I will try to call that function from server site. Ty for helping.

AgenChicken24 commented 3 years ago

Ok I have moved the event to the server-side but I still get the error of blocking where do I change the IP because I tried to connect with my ipv4 address but still the same

jaimeadf commented 3 years ago

Can you add me in discord Marmota#2533?

AgenChicken24 commented 3 years ago

I just did i am I'm a Chicken LOL#1819