BrastaSauce Posted April 5, 2014 Posted April 5, 2014 Alright, so my problem is that I need to make my dxDrawText clickable, to open a new window. For this I am using.. addEventHandler("onClientGUIClick", , clickOnMessage) The second argument is empty because it calls for an element, and sadly, dxDrawText is a boolean. So is there anyways I can make dxDrawText an element to fit the second argument? Or is there a completely different way to making it clickable.
xXMADEXx Posted April 5, 2014 Posted April 5, 2014 DX draw functions return true and false, not GUI elements. You need to use onClientClick and and check to see if the cursor is over the text.
BrastaSauce Posted April 5, 2014 Author Posted April 5, 2014 Alright, so every example I see of it is used to click on an element in the GTA world. How would I make one that would simply create a window once clicked on a certain part of the screen?
Ab-47 Posted April 5, 2014 Posted April 5, 2014 You know you could just create GUI button on-top of your DX text with alpha 0 (invisible), so it's like an invisible button.
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