You can use a dry powder or foam fire extinguisher on a car that's on fire. However, the safest thing is to move away from the car and call the fire department.