Lezlike Posted October 10, 2020 Share Posted October 10, 2020 (edited) If I create lines with (dxDrawLine3D) and I click one of the lines how can I turn the clicked line color to red, or size to bigger ? How can I detect which line was clicked? Edited October 10, 2020 by Lezlike Link to comment
MrKAREEM Posted October 12, 2020 Share Posted October 12, 2020 OnClientClick IsMouseInPosition On 10/10/2020 at 13:36, Lezlike said: how can I turn the clicked line color to red, or size to bigger ? How can I detect which line was clicked? for the color here's an example local r = 255 local b = 0 local g = 0 addEventHandler("onClientRender", root, function() dxDrawLine3D ( 0, 0, 0, 0, 0, 0, tocolor ( r, b, g, alpha )) end) addCommandHandler('green', function() r = 0 b = 255 g = 0 end) 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