Desaster Posted November 6, 2013 Share Posted November 6, 2013 well idk how to make it I tryed sth but it won't work here is my code help me function guiClick1 ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if (source == withraw) then local r, g, b = 0, 255, 0 removeEventHandler("onClientRender", getRootElement(), chadi) guiSetVisible ( edit, false ) showCursor ( false ) end end addEventHandler ( "onClientClick", getRootElement(), guiClick1 ) Link to comment
TAPL Posted November 6, 2013 Share Posted November 6, 2013 I don't get what you want to do, but source is not what you thinks (read wiki for info about source). function guiClick1 ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if (clickedElement == withraw) then local r, g, b = 0, 255, 0 removeEventHandler("onClientRender", getRootElement(), chadi) guiSetVisible ( edit, false ) showCursor ( false ) end end addEventHandler ( "onClientClick", getRootElement(), guiClick1 ) Link to comment
Castillo Posted November 6, 2013 Share Posted November 6, 2013 I'm I right when I think that what you are trying to do is execute that code when you click on something you drawn with the DX functions? if so, that's not how it works. Link to comment
Desaster Posted November 7, 2013 Author Share Posted November 7, 2013 yup that's it but how it work then ?? Link to comment
pa3ck Posted November 7, 2013 Share Posted November 7, 2013 It was anwered in your other post already: https://forum.multitheftauto.com/viewtopic.php?f=91&t=67078 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