Timiimit Posted January 24, 2012 Share Posted January 24, 2012 I saw a resource in community called "nyan". I would like to know how to replace the moon like resource does. btw i tried to figure out how to, but i have no clue! Can anyone tell me how to do that but only to replace the moon with one img? Link to comment
BriGhtx3 Posted January 25, 2012 Share Posted January 25, 2012 You cant replac it with an image. You have to use txd. Link to comment
Timiimit Posted January 25, 2012 Author Share Posted January 25, 2012 but in the script is are used ".png" images?!! Link to comment
CapY Posted January 25, 2012 Share Posted January 25, 2012 You cant replac it with an image.You have to use txd. WRONG You can replace it with images, just set the same name. Link to comment
Timiimit Posted January 25, 2012 Author Share Posted January 25, 2012 yes, but how to?? Link to comment
NeXTreme Posted January 25, 2012 Share Posted January 25, 2012 You can use a shader. Download this resosurce: https://community.multitheftauto.com/index.php?p= ... ls&id=2730 It contains a shader called "texreplace.fx". Add that shader as a "file" in your meta.xml, along with the png image you wish to use for the moon, then use this code in a client-sided script to replace the moon: texShader = dxCreateShader ( "texreplace.fx" ) moonTexture = dxCreateTexture("yourMoonImage.png") -- Replace the filename to your image's file obviously dxSetShaderValue(texShader,"gTexture",moonTexture) engineApplyShaderToWorldTexture(texShader,"coronamoon") Enjoy. Link to comment
BriGhtx3 Posted January 25, 2012 Share Posted January 25, 2012 You cant replac it with an image.You have to use txd. WRONG You can replace it with images, just set the same name. I didn't download the resource, so i couldn't know that he wants to replace the pictures IN it. 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