Jump to content

[HELP] Paintjob


DiSSGen

Recommended Posts

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
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.

  • Like 1
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...