LaCubas Posted February 10, 2019 Share Posted February 10, 2019 Looking for Shader, what's Shader name? Link to comment
Mr.Loki Posted February 10, 2019 Share Posted February 10, 2019 No need for a shader local rt = dxCreateRenderTarget( 500, 500, true ) local x,y,z = -1981.938, 273.126, 34.2 local size = 2 dxSetRenderTarget( rt ) dxDrawCircle ( 250, 250, 250, 0.0, 360.0, tocolor(255,255,255,50), -1, 32 ) dxSetRenderTarget( ) addEventHandler( "onClientPreRender", root, function( ) dxDrawMaterialLine3D( x, y+size, z, x, y-size, z, rt, size*2, -6908161, x,y,z+1 ) end ) Spoiler 1 Link to comment
LaCubas Posted February 11, 2019 Author Share Posted February 11, 2019 17 hours ago, Mr.Loki said: No need for a shader local rt = dxCreateRenderTarget( 500, 500, true ) local x,y,z = -1981.938, 273.126, 34.2 local size = 2 dxSetRenderTarget( rt ) dxDrawCircle ( 250, 250, 250, 0.0, 360.0, tocolor(255,255,255,50), -1, 32 ) dxSetRenderTarget( ) addEventHandler( "onClientPreRender", root, function( ) dxDrawMaterialLine3D( x, y+size, z, x, y-size, z, rt, size*2, -6908161, x,y,z+1 ) end ) Reveal hidden contents The script works. But how to change the color? When I change color color (255,0,0,50), then the color does not change and displays a warning. Warning: <min_mta_version> section in the meta.xml is incorrect or mising (expected at least client 1.3.0 because function is being called outside certain events) How to do it? Glow around texture Link to comment
Mr.Loki Posted February 11, 2019 Share Posted February 11, 2019 change color at line 10 delete "-6908161" and use tocolor() to make objects glow just edit the code a bit dxDrawMaterialLine3D( x, y, z-size, x, y, z+size, rt, size*2, tocolor(150,150,255) ) and use the x,y,z of the object Link to comment
LaCubas Posted February 11, 2019 Author Share Posted February 11, 2019 55 minutes ago, Mr.Loki said: change color at line 10 delete "-6908161" and use tocolor() to make objects glow just edit the code a bit dxDrawMaterialLine3D( x, y, z-size, x, y, z+size, rt, size*2, tocolor(150,150,255) ) and use the x,y,z of the object I changed the color, but the mistakes remained. How can they be removed? And how to make texture glow? 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