While parked and waiting for drive-thru service, my Nissan Rogue began to smoke and immediately turned into flames under the hood. There was no malfunction or problems before this incident. Approximately 15 minutes prior to the incident, the driver stopped and filled truck with gas. After driving from the gas station, the driver went approximately 10 miles for food, where the car began smoking, and flames coming from under the hood. There were no warning signs, messages or malfunctions prior to this incident. The car was running quietly and smoothly and had not encountered any problems prior to the incident.