huyjvguyen Posted May 26, 2016 Share Posted May 26, 2016 Hello everybody, i hope you have a good day! My question is: When i use function takePlayerScreenShot on sever then how to find this image? i mean the folder. Link to comment
spoty Posted May 26, 2016 Share Posted May 26, 2016 goto your mta folder and open screenshots Link to comment
huyjvguyen Posted May 26, 2016 Author Share Posted May 26, 2016 no,i mean the folder on server, because this function take play screen and send to server! https://wiki.multitheftauto.com/wiki/Ta ... ScreenShot This function forces a client to capture the current screen output and send it back to the server. The image will contain the GTA HUD and the output of any dxDraw functions that are not flagged as 'post GUI'. The image specifically excludes the chat box and all GUI (including the client console). The result is received with the event onPlayerScreenShot. Link to comment
roaddog Posted May 26, 2016 Share Posted May 26, 2016 See this and read imageData parameter https://wiki.multitheftauto.com/wiki/OnPlayerScreenShot Link to comment
huyjvguyen Posted May 26, 2016 Author Share Posted May 26, 2016 hmm.. i mean , Can we save this image in folder on server? take player screen and save this in server's folder Link to comment
xXMADEXx Posted May 26, 2016 Share Posted May 26, 2016 hmm.. i mean , Can we save this image in folder on server? take player screen and save this in server's folder Yes... As NeverGiveup said, read teh imageData parameter. See this and read imageData parameterhttps://wiki.multitheftauto.com/wiki/OnPlayerScreenShot imageData: A string which contains the JPEG image data. This can be saved with the file functions, or sent to players with triggerClientEvent or even uploaded to a web site. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now