DeletedAccount1111 Posted April 26, 2013 Share Posted April 26, 2013 Hi, I'm currently using custom cars in my server (loaded with modloader) and i wanted to apply some paintjobs to them, but seems that i cant do that thing. So i want to lnow how I am suposed to do this. At the moment, I'm using a script that i found here: viewtopic.php?f=91&t=35778 And here it is: The lua: addEventHandler( "onClientResourceStart", resourceRoot, function() texture = dxCreateTexture ( "uranus2body256.png" ) shader, tec = dxCreateShader( "shader.fx" ) --bit of sanity checking if not shader then outputConsole( "Could not create shader. Please use debugscript 3" ) destroyElement( texture ) return elseif not texture then outputConsole( "loading texture failed" ) destroyElement ( shader ) tec = nil return else engineApplyShaderToWorldTexture ( shader, "uranus2body256" ) dxSetShaderValue ( shader, "gTexture", texture ) end end ) the fx: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } and obviously, the meta: "Shader - UV Scroll" version="0.0.3" type="script" /> The car is some AE86 from Emzone guys. (Just if this helps) If an admin grants me permission, i'll upload the script folder to mediafire or to mega, so you can see what i created. 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