Desaster Posted November 6, 2013 Share Posted November 6, 2013 hello , I was thinking to make a DX button with a DX rectangle but how to get when a player clic on the dxrec and when the cursor is on the render to change it's color Link to comment
-.Paradox.- Posted November 6, 2013 Share Posted November 6, 2013 https://wiki.multitheftauto.com/wiki/GuiSetEnabled https://wiki.multitheftauto.com/wiki/OnClientGUIClick Link to comment
Renkon Posted November 6, 2013 Share Posted November 6, 2013 Ignore what that guy said... you must get the client's mouse position in this event https://wiki.multitheftauto.com/wiki/OnClientClick and check if its okay and its inside the dx Link to comment
xXMADEXx Posted November 6, 2013 Share Posted November 6, 2013 https://wiki.multitheftauto.com/wiki/GuiSetEnabledhttps://wiki.multitheftauto.com/wiki/OnClientGUIClick He is talking about DX functions, not a GUI. Link to comment
SKIDROW Posted November 6, 2013 Share Posted November 6, 2013 i dont think if there is any function check on Dx button Click + there is no dx functio to make button you must use as StevyDK said . Link to comment
xXMADEXx Posted November 6, 2013 Share Posted November 6, 2013 i dont think if there is any function check on Dx button Click + there is no dx functio to make button you must use as StevyDK said . There is. You have to kinda make it yourself though with dxDrawRectangle and onClientClick. Link to comment
Desaster Posted November 6, 2013 Author Share Posted November 6, 2013 i dont think if there is any function check on Dx button Click + there is no dx functio to make button you must use as StevyDK said . There is. You have to kinda make it yourself though with dxDrawRectangle and onClientClick. I think I'll do this . anyways thnx all for anwering when I have any other question I'll reply it here Link to comment
Spajk Posted November 7, 2013 Share Posted November 7, 2013 The easiest way is to create a blank gui label over the rectangle and then use onClientGUIClick. 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