Jump to content

[Help]onClientClick


Desaster

Recommended Posts

well idk how to make it I tryed sth but it won't work :P 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

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

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...