How to make a resolution setting with dropdown list and only have a few options

I wanted to make a resolution setting with dropdown list, similiar to the old configuarion window but only have a few options:

  • 640x360
  • 800x600
  • 1280x720
  • 1600x900
  • 1920x1080

Any scripts to make that simple and less messy?