The sentence "You can have the car provided you put some fuel in it and look after it well." is a complex sentence.
It contains an independent clause ("You can have the car") and a dependent clause ("provided you put some fuel in it and look after it well"), where the dependent clause cannot stand alone as a complete sentence.