Fact

Selfie system

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

For the records. It does not work as function is broken..

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.