Jump to content

hazard lights ?


#Selly

Recommended Posts

    myShader = dxCreateShader( "Shader.fx" ) 
    Texture = dxCreateTexture("Skin.png") 
    dxSetShaderValue(myShader, "Skin", Texture) 
      
    addEventHandler("onClientVehicleEnter", root, 
        function(thePlayer, seat) 
            local theVehicle = source 
            if seat == 0 and thePlayer == localPlayer then 
                engineApplyShaderToWorldTexture( myShader, "vehiclelightson128", theVehicle ) 
           if ( isPedInVehicle ( thePlayer ) ) and ( getVehicleOverrideLights ( getPedOccupiedVehicle ( thePlayer ) ) ~= 2 ) then 
                setVehicleOverrideLights ( getPedOccupiedVehicle ( thePlayer ), 2 ) 
            else 
                setVehicleOverrideLights ( getPedOccupiedVehicle ( thePlayer ), 1 ) 
             end 
           end 
        end 
) 
  
  

    texture gTexture; 
      
    technique hello 
    { 
        pass P0 
        { 
            Texture[0] = gTexture; 
        } 
    } 
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...