What do you mean by foreign car? They dont treat UAE and GULF country as foreign car and as far as i know, no limit for those cars to stay in Qatar as long as they had extended their insurance to be covered in Qatar. If you wanted to drive your Qatar's car to Dubai for example, you need to apply and extend your insurance to cover out of Qatar during the application of transit visa for saudi to uae.