GamerDeMTA Posted June 13, 2013 Author Share Posted June 13, 2013 the debugscript 3? is @ AddEventHandler got nil in argument 2 Link to comment
PaiN^ Posted June 13, 2013 Share Posted June 13, 2013 Yeh happens wtih me as well, Try it like this : function open () vent = guiCreateWindow(485, 185, 314, 385, "WINDOW", false) guiWindowSetSizable(vent, false) guiSetVisible ( vent, false ) a = guiCreateButton(9, 31, 296, 58, "e", false, vent) b = guiCreateButton(9, 259, 296, 58, "e", false, vent) c = guiCreateButton(13, 94, 77, 30, "ele", false, vent) d = guiCreateButton(222, 94, 77, 30, "ee", false, vent) e = guiCreateButton(13, 323, 77, 30, "eble", false, vent) f = guiCreateButton(222, 323, 77, 30, "eeble", false, vent) addEventHandler( "onClientGUIClick", resourceRoot, function( ) if source == a then aa( ) elseif source == b then bb( ) elseif source == c then cc( ) elseif source == d then dd( ) end end ) imagen = guiCreateStaticImage(13, 133, 292, 120, "carm.png", false, vent) bindKey ( 'f4', 'down', windowopen ) end addEventHandler ( 'onClientResourceStart', resourceRoot, open ) function aa () outputChatBox ("YOU PRESSED THE BUTTON", 0, 255, 0, true) showCursor (true) end function bb () outputChatBox ("YOU PRESSED THE BUTTON !!", 255, 0, 0, true) showCursor (true) end function cc () outputChatBox ("YOU PRESSED THE BUTTON", 0, 255, 0, true) showCursor (true) end function dd () outputChatBox ("YOU PRESSED THE BUTTON.", 255, 0, 0, true) showCursor (true) end function windowopen ( ) guiSetVisible ( vent, not guiGetVisible ( vent ) ) showCursor ( guiGetVisible ( vent ) ) end Link to comment
iPrestege Posted June 13, 2013 Share Posted June 13, 2013 the debugscript 3? is @ AddEventHandler got nil in argument 2 Which one . 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