Jump to content

onClientClick


Rat32

Recommended Posts

Posted
  
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?

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...