Jump to content

addEventHanlder('onClientGUIClick' ??


X-SHADOW

Recommended Posts

Hello i have 2 GUI windows

1# Rob Bank

#2 Job

can i do this for both gui windows

addEvetnHandler('onClientGUIClick', root,

function ( )

if (source == yes ) then

----

else if (source == no then

----

else if ...

do all click things in 1 event is it possable ?

if yes then show me some Example Please

Link to comment

Yes it is ...

addEventHandler( "onClientGUIClick", root, 
      function ( ) 
            if ( source == button1 ) then 
                  guiSetVisible(wnd1, true) 
            elseif ( source == button2 ) then 
                  guiSetVisible( wnd2, true ) 
            end 
      end 
) 

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