Jump to content

HELP


ghassen14

Recommended Posts

Hello Guys

I made a simple panel for test but i failed its not working . So can someone help me on addCommandHandler

GUIEditor = { 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function panel() 
        GUIEditor.window[1] = guiCreateWindow(515, 293, 720, 379, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false)     
    end 
) 
  
addCommandHandler("pp", panel) 
  

Link to comment

GUIEditor = { 
    window = {} 
} 
  
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) 
        GUIEditor.window[1] = guiCreateWindow(515, 293, 720, 379, "", false) 
        guiWindowSetSizable ( GUIEditor.window[1], false ) 
        guiSetVisible ( GUIEditor.window[1], false ) 
end) 
  
addCommandHandler( "pp", function ( ) 
guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
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...