Menu tp perform COnsole Command

Hey, I would like to make a menu that will say things in console or chat both will work.

Details–

  1. Two top tabs. One for Citizen and one for CP.
  2. When I press a button for one it will type something in chat or console.

Will you please tell me how I can do this or code that will help me or nything? I am a noob coder.
I based this off of http://www.garrysmod.org/downloads/?a=view&id=82466
Thanks for your help!

-Zack