How to buy car in Malta? You need a residence card to do that?

I want to buy a car but don’t have residence card yet…