ghassen14 Posted November 9, 2015 Share Posted November 9, 2015 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
Rockyz Posted November 9, 2015 Share Posted November 9, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now