Welcome!
Most people would say buy the house first, then the car.
But there are exceptions to every rule. It depends what your whole credit picture looks like. I bought a car one month before I bought my first house, and there seemed to be no negative effect.