Server binding F2 to console command "simple_thirdperson_enable_toggle"

would like to have the option to switch to thirdperson in my server.

My idea is that when a player presses “F2” in the server his console runs the command “simple_thirdperson_enable_toggle”

i think i’m in the wrong section


hook.Add( "ShowTeam", "thirdperson", function( ply )
   ply:ConCommand( "simple_thirdperson_enable_toggle" )
end )

where I have to put that?

lua/autorun, I believe.

lua/autorun/server

Thanks Code_gs