There are a few things you can do to get rid of gnats in a car. One is to use a spray bottle filled with water to squirt at the gnats. Another is to use a vacuum cleaner and bucket to suck the gnats out of the air.