Desaster Posted November 6, 2013 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
-.Paradox.- Posted November 6, 2013 Posted November 6, 2013 https://wiki.multitheftauto.com/wiki/GuiSetEnabled https://wiki.multitheftauto.com/wiki/OnClientGUIClick If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
Renkon Posted November 6, 2013 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
xXMADEXx Posted November 6, 2013 Posted November 6, 2013 https://wiki.multitheftauto.com/wiki/GuiSetEnabledhttps://wiki.multitheftauto.com/wiki/OnClientGUIClick He is talking about DX functions, not a GUI. The Ultimate Lua Tutorial! | MTA PHP SDK
SKIDROW Posted November 6, 2013 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 .
xXMADEXx Posted November 6, 2013 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. The Ultimate Lua Tutorial! | MTA PHP SDK
Desaster Posted November 6, 2013 Author 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
Spajk Posted November 7, 2013 Posted November 7, 2013 The easiest way is to create a blank gui label over the rectangle and then use onClientGUIClick.
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