Simi Valley police say the incident happened at about 8 p.m. outside the Donut Time restaurant in the 3900 block of Cochran Street.
Several people described as "young adults" were in the car when at least one shot was fired into the vehicle, police said. No one was struck by gunfire.
The incident is being investigated as an attempted carjacking.
The gunman, believed to be wearing a red hoodie, fled on foot.