I havent hurt my leg at all. My right quad hurts really bad. The pain spasms. I can straighten my leg and walk on it. Resting my leg causes pain.

If it is only. pain at rest, then you probably do have a severe muscle spasm. If it happens a lot at night, you may have restless leg syndrome. You will need some blood tests to check for electrolyte abnormalities and dehydration. Drink lots of Pedialyte, coconut water or Gatorade to see if your cramps are relieved.