DiSSGen Posted November 5, 2020 Share Posted November 5, 2020 hi guys can i add custom paintjob on custom vehicles ? i saw that in some servers but i don't have any ideas to write this script Link to comment
Hydra Posted November 5, 2020 Share Posted November 5, 2020 Yes you can with: engineApplyShaderToWorldTexture() https://wiki.multitheftauto.com/wiki/EngineApplyShaderToWorldTexture Link to comment
DiSSGen Posted November 5, 2020 Author Share Posted November 5, 2020 7 hours ago, Hydra said: Yes you can with: engineApplyShaderToWorldTexture() https://wiki.multitheftauto.com/wiki/EngineApplyShaderToWorldTexture can you help me ? i don't have any ideas please give me an example Link to comment
Hydra Posted November 5, 2020 Share Posted November 5, 2020 local shader = dxCreateShader("shader.fx") local thePaintjob = dxCreateTexture("asd.png") function b() dxSetShaderValue(shader, "gTexture", thePaintjob) engineApplyShaderToWorldTexture(shader, "vehiclegrunge256") end addEventHandler("onClientResourceStart", resourceRoot, b) You can find more about this here: https://wiki.multitheftauto.com/wiki/DxCreateShader https://wiki.multitheftauto.com/wiki/DxCreateTexture https://wiki.multitheftauto.com/wiki/DxSetShaderValue https://wiki.multitheftauto.com/wiki/Element/Shader Link to comment
DiSSGen Posted November 5, 2020 Author Share Posted November 5, 2020 its working but i want to replace textures on custom vehicles such as Lamborghini and more ... Link to comment
Hydra Posted November 5, 2020 Share Posted November 5, 2020 I don't remember exactly what you need to do about the modded cars but i'm sure you need to modify the .txd file Link to comment
JustinMTA Posted November 6, 2020 Share Posted November 6, 2020 22 hours ago, DiSSGen said: its working but i want to replace textures on custom vehicles such as Lamborghini and more ... You need to change "vehiclegrunge256" in the script, to the name of the texture the Lamborghini or which ever modded car you're using. Because custom models use different texture names sometimes. Open the .TXD in MagicTXD or TXDworkshop, and locate the texture name. 1 Link to comment
DiSSGen Posted November 7, 2020 Author Share Posted November 7, 2020 12 hours ago, JustinMTA said: You need to change "vehiclegrunge256" in the script, to the name of the texture the Lamborghini or which ever modded car you're using. Because custom models use different texture names sometimes. Open the .TXD in MagicTXD or TXDworkshop, and locate the texture name. Uh , thank you Link to comment
DiSSGen Posted November 7, 2020 Author Share Posted November 7, 2020 @JustinMTA i was found name of wheel textures but i can't found name of vehicle body can u help me more ? 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