Timiimit Posted January 24, 2012 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? in game nickname: [GFL]TimiimiT
BriGhtx3 Posted January 25, 2012 Posted January 25, 2012 You cant replac it with an image. You have to use txd. Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
Timiimit Posted January 25, 2012 Author Posted January 25, 2012 but in the script is are used ".png" images?!! in game nickname: [GFL]TimiimiT
CapY Posted January 25, 2012 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.
Timiimit Posted January 25, 2012 Author Posted January 25, 2012 yes, but how to?? in game nickname: [GFL]TimiimiT
NeXTreme Posted January 25, 2012 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. Website: http://www.twisted-gamers.net Don't you just love the error messages in LUA?
BriGhtx3 Posted January 25, 2012 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. Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
Timiimit Posted January 25, 2012 Author Posted January 25, 2012 THX!! in game nickname: [GFL]TimiimiT
NeXTreme Posted January 25, 2012 Posted January 25, 2012 No problem Website: http://www.twisted-gamers.net Don't you just love the error messages in LUA?
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