Jump to content

Recommended Posts

Posted

Hi, how can I implement a selfie system or just a photo system? I need to get any image file (png, jpg for example)

Posted
21 hours ago, Fact said:

I have seen this function, but how can I then get the image?

it says at the top of that page...

Quote

Takes screenshot of game screen and puts at /screenshots/ip_port folder. Accessible in CEF via screenshots:// scheme.

The image can be found there

  • Like 2
Posted
11 час назад, Jaimuzu сказал:

it says at the top of that page...

The image can be found there

I tried, it didn't work for me. Can you give an example?

  • 5 weeks later...
Posted (edited)

No the function works. I´m using it.

 

mp.keys.bind(0x77, true, function () {  //F8-Key
    var date = new Date();
    var name = "sanstreetlife-" + date.getDate() + "." + date.getMonth() + "." + date.getFullYear() + "-" + date.getHours() + "." + date.getMinutes() + "." + date.getSeconds() + ".png";
    mp.gui.takeScreenshot(name, 1, 100, 0);
});

 

It saves it in "RAGEMP/screenshots/ip-of-server"

Edited by Flashrex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...