Jump to content

OnClientGuiClick - Whats happening after the function runs


Recommended Posts

i've got the following code:

  
  
function buttonClicked(button, state) 
    if button == oyuncuYonetimiBtn then 
        --- 
    elseif button == aracYonetimiBtn then 
        --- 
    elseif button == sunucuYonetimiBtn then 
        --- 
    elseif button == sirketYonetimiBtn then 
        --- 
    end 
end 
         
addEventHandler("onClientGUIClick", anyButton, buttonClicked, false) 

if the function "buttonClicked" called, will be that eventHandler deleted? Or should I remove that eventHandler manually? and how?

--and second question:

in the function "buttonClicked",

should I set the button "anyButton" invisible and set it as nil?

do I need it?

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