Setting Binds for players

Is there a way i can make it so everyone in my server presses for example F1 they say !menu and how?

These are server-side hooks:

GM:ShowHelp --F1
GM:ShowTeam --F2
GM:ShowSpare1 --F3
GM:ShowSpare2 --F4

so

[lua]hook.Add( “ShowSpare2”, “F4Hook”, function( _p )
_p:ConCommand( “say !menu” );

// Although it'd be better to just run the menu command
_p:ConCommand( "menu" );

end );[/lua]

Or you can use PlayerBindPress, it’s clientside, does the same thing as posted above.

gm_showhelp - F1
gm_showteam
gm_showspare1
gm_showspare2 - F4