Gordon_G Posted September 16, 2018 Share Posted September 16, 2018 Hi, I'm actually trying to make a script that could save the player's screen to a file local s = dxCreateScreenSource ( 1366, 768 ) local b = dxUpdateScreenSource ( s ) if b then -- ... end Is it possible to save the "s" texture to a png file for example ? Link to comment
MIKI785 Posted September 16, 2018 Share Posted September 16, 2018 Yes, use dxGetTexturePixels on s and then dxConvertPixels to get png/jpg data and then save it using for example fileWrite. 1 Link to comment
Gordon_G Posted September 16, 2018 Author Share Posted September 16, 2018 @MIKI785 Oh dude you are saving my a** thanks to you i've got every vehicles image Link to comment
JeViCo Posted September 16, 2018 Share Posted September 16, 2018 4 hours ago, Gordon_G said: @MIKI785 Oh dude you are saving my a** thanks to you i've got every vehicles image if you want to make images of each vehicle for in-game usage, you can use this resource. 1 Link to comment
Gordon_G Posted September 17, 2018 Author Share Posted September 17, 2018 11 hours ago, JeViCo said: if you want to make images of each vehicle for in-game usage, you can use this resource. Wow, i didn't know that was possible. Thanks again. 1 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