ali Posted June 4, 2013 Share Posted June 4, 2013 I need to bind F1 to this and im getting stuck using bindKey --- and i need it on "onClientPlayerJoin" here is the script function Show(key,keyState) visible = guiGetVisible(ppanel) if visible == false then guiSetVisible(ppanel, true) showCursor(true) elseif visible == true then guiSetVisible(ppanel, false) showCursor(false) end end addEvent("ShowSelect", true) addEventHandler("ShowSelect", root, Show) Link to comment
iPrestege Posted June 4, 2013 Share Posted June 4, 2013 bindKey('F1','down', function ( ) guiSetVisible ( ppanel , not guiGetVisible ( ppanel ) ) showCursor ( guiGetVisible ( ppanel ) ) end ) Try this . 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