Controlled Posted November 15, 2014 Share Posted November 15, 2014 Is it possible to make a window on a vehicle disappear? Like when you setPedDoingGangDriveby the window they use disappears. Is it possible to remove a window without doing a driveby? Example: Link to comment
WASSIm. Posted November 15, 2014 Share Posted November 15, 2014 see that tis exmple how remove texture of vehicle from EngineApplyShaderToModel myShader = dxCreateShader( "hello.fx" ) addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture( myShader, "vehiclegrunge256", theVehicle ) engineApplyShaderToWorldTexture( myShader, "?emap*", theVehicle ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineRemoveShaderFromWorldTexture( myShader, "vehiclegrunge256", theVehicle ) engineRemoveShaderFromWorldTexture( myShader, "?emap*", theVehicle ) end end ) Link to comment
Controlled Posted November 16, 2014 Author Share Posted November 16, 2014 see that tis exmple how remove texture of vehicle from EngineApplyShaderToModel myShader = dxCreateShader( "hello.fx" ) addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture( myShader, "vehiclegrunge256", theVehicle ) engineApplyShaderToWorldTexture( myShader, "?emap*", theVehicle ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineRemoveShaderFromWorldTexture( myShader, "vehiclegrunge256", theVehicle ) engineRemoveShaderFromWorldTexture( myShader, "?emap*", theVehicle ) end end ) Any idea on how to make a shader for this? Link to comment
WASSIm. Posted November 16, 2014 Share Posted November 16, 2014 that hello.fx texture gTexture; technique hello { pass P0 { Texture[0] = gTexture; } } 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