Rat32 Posted March 23, 2016 Share Posted March 23, 2016 addEventHandler("onClientClick",getRootElement(), function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) if button=="left" then if state=="down" then if clickedElement==loginNickEdit then guiSetPosition(clickedElement,5000,5000,false) else guiSetPosition(loginNickEdit,0.32, 0.39,true) guiSetPosition(loginHasloEdit,0.32, 0.43,true) guiSetPosition(registerNickname,0.52, 0.39,true) guiSetPosition(registerPassword,0.52, 0.43,true) guiSetPosition(registerConfirmPassword,0.52, 0.46,true) end end end end) Why element-type ALWAYS returning false or nothing? Link to comment
Tox Posted March 23, 2016 Share Posted March 23, 2016 clickedWorld: This represents any physical entity elements that were clicked. If the player clicked on no MTA element, it's set to false. you can use onClientGUIClick instead 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