Mr.Loki Posted February 10, 2019 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
LaCubas Posted February 11, 2019 Author 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
Mr.Loki Posted February 11, 2019 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
LaCubas Posted February 11, 2019 Author 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?
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