There are a few things you can do to get rid of gnats in a car. First, make sure the car is free of clutter and dust. Second, clean the inside and outside of the car with a mild soap and water. Third, put an insecticidal soap on your hands and arms before you start treatment. Fourth, spray the area with a pesticide if you think there are too many gnats. Fifth, cover the area with a cloth or plastic sheet to keep the gnats from coming back. Sixth, wait for at least 24 hours beforetreatment is complete.