lLinux Posted June 20, 2014 Posted June 20, 2014 Hi all, I would like to know how to create a button in dxDraw. Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
xXMADEXx Posted June 20, 2014 Posted June 20, 2014 You can check how I did it in this: https://community.multitheftauto.com/index.php?p= ... ls&id=8367 The Ultimate Lua Tutorial! | MTA PHP SDK
_DrXenon Posted June 20, 2014 Posted June 20, 2014 One suggestion create a Dx rectangle for instance and then create a gui label (with no text) on the Dx Rectangle (with same x,y,width,height) then addEventHandler("onClientGUIClick",theLabel,function) -- when you click on the label (that's not visible...trigger the function) ●●● Rage Gaming Society Coming Soon ●●●
Arnold-1 Posted June 20, 2014 Posted June 20, 2014 i usually use a table for it, this way: clicks = { {x , y, h, w,} } addEventHandler("onClientClick",root, function () you loop through the table and check which index it clicked end ) Ingame Name: Arnold If you need my help, contact me on Skype @bshr.ara NOTE:DO NOT ASK ME FOR SCRIPTS, ASK ME FOR HELP
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