Jump to content

اذا ضغط الزر تفتح نافذة

Recommended Posts

السلام عليكم ورحمه الله وبركاته

انا أبي كود اذا ضغطت الزر تفتح نافذة ثانية

دورت لقيت ذا الكود

addEventHandler('onClientGUIClick­9;,GUIEditor.button[1], function ( ) if guiGetVisible ( GUIEditor.window[1] ) and not guiGetVisible ( shopWindow ) then guiSetVisible ( GUIEditor.window[1] , false ); guiSetVisible ( shopWindow , true ); end 

بس م ضبط معي

اتمنى تساعدوني

Link to comment


 function ( ) 
 if guiGetVisible ( OldWindow ) and not guiGetVisible ( NewWindow ) then  
guiSetVisible ( OldWindow , false );  
guiSetVisible ( NewWindow , true ); 

كذا ؟

Link to comment
addEventHandler ("onClientGUIClick", resourceRoot, function () 
 if (source == Button) then 
   if (guiGetVisible (OldWindow) and not guiGetVisible (NewWindow)) then 
     guiSetVisible (OldWindow, false) 
     guiSetVisible (NewWindow, true) 


Edited by Guest
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...