DiosSasuke Posted May 17, 2018 Share Posted May 17, 2018 is it possible to put the smoke from object 689 to dark purple? Link to comment
TEDERI Posted May 18, 2018 Share Posted May 18, 2018 I think it is possible through shaders for example. Link to comment
TEDERIs Posted May 18, 2018 Share Posted May 18, 2018 So, first of all we need a shader. And don't forget download the mta-helper.fx file. Next, we need to use following functions: dxCreateShader dxSetShaderValue engineApplyShaderToWorldTexture Link to comment
TEDERIs Posted May 18, 2018 Share Posted May 18, 2018 (edited) Okay, I have made an example for you: local yourColor = { 1, 0, 0, 1 } local textureName = "" local shader = dxCreateShader("putYourShaderHere.fx", 0, 0, false, "object") if shader then dxSetShaderValue(shader, "theColorYouWant", unpack(yourColor)) engineApplyShaderToWorldTexture(shader, textureName) end The "textureName" parameter you should find out with the resource named shader_tex_names. Just start the resource, walk up towards your object 689 and find the name by scrolling a list. Of course you also should download the shaders I can gave and put them in a resource folder(the shader should be named "putYourShaderHere.fx". And don't forget about a meta file. Good luck! Edited May 18, 2018 by TEDERIs 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