Jump to content

[Shader]Window Tint | Help Required


Recommended Posts

Hello community,

I've a problem and can't find a solution for it.The problem is that i can't find the.png file that represents the texture of the windscreen of a car.I've been searching for a while and the only thing i found is when it's damaged.Can't find the normal one.Can anyone help me out with this because it's quite important.I wanted to use shaders to replace it because i'm not going to apply it to every car.So it would be great if someone can help me with this.

Thank you and regards,

Syntrax#

Link to comment
Check vehicle.txd

If your looking for the name of the file use

nightly.multitheftauto.com/files/shaders/shader_tex_names.zip

Thank you found it but how to make it black.Using a png file doesn't make it fully black it only covers the Trim

Link to comment
  
 --- Server and or client side 
  
setElementData(vehicle,"vehicle.tint",true,true) -- first (True) setting, true or false 
  
  
--- Client side 
  
addEventHandler( "onClientElementStreamIn", getRootElement( ), 
    function ( ) 
    if getElementType(source) == "vehicle" then 
        if getElementData(source,"vehicle.tint") == true then 
        -- Apply shader 
            end 
        end 
    end 
) 
  
  
addEventHandler( "onClientElementStreamOut", getRootElement( ), 
    function ( ) 
    if getElementType(source) == "vehicle" then 
        if getElementData(source,"vehicle.tint") == true then 
        -- Kill shader, save resources 
            end 
        end 
    end 
) 

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