A North Carolina 5-year-old is in critical condition after accidentally shooting himself in the face outside a Wendy's restaurant Sunday afternoon in Randolph County, authorities said.

>> Watch the news report here

>> On WSOCTV.com: Police accuse man of dropping infant son, punching woman

Randleman police said the child was inside a car at the drive-thru when the handgun went off.

Police said the boy was in a car seat and unbuckled himself as his mother pulled up to the drive-thru.

>> Read more trending news

The child grabbed a .45 semi-automatic handgun from a pocket on the back of the car’s front passenger seat and pulled the trigger, police said.

Police said the gun belonged to the boy’s father, who left the gun in the car.