I GOT A TICKET/NOTICE for my car thats in the driveway.

That sounds kind of "iffy" since it was on private property. If the tires were flat and there was on city ordinance/code that states something about that, then the inspector could site the good ole "probable cause" since it was breaking code. Now if you're in a HOA, then you're probably screwed all around. Most of them can even look over your wall into your back yard and fine you for "discrepencies". I won't live anywhere that has a HOA, but that my personal preference.
My neighbor thought it was "iffy" as well, he contacted the city and they claim that any vehicle in the front yard needs to be registered and insured and that they have the right to check for current tags, even if that means they have to walk up the driveway and lift the cover. Code enforcement here was strange. Jet Skis could be in your front yard on a trailer, as long as they moved once a week. Car trailer, by itself, is a vioaltion. However, if it is hooked to a tow vehicle it is not. I think what made matters worse was the code enforcer had family in the neighbor hood. We did have any sort of HOA. I am glad we moved out into the country. We live in an unincorporated county here, so any thing goes. People living in school buses, steel shipping containers etc.
I got a notice once that said my grass/weeds were too tall and my car had to be parked on concrete or asphlat. Only one of the tires was halfway on the dirt. I called the Enforcement Officer to come out and show me what he was talking about, just so I could point a few things out to him face to face. When he came I asked him about the four other houses around me with taller grass and weeds, and the other homes that had cars parked completly in the yard that had been there since I moved into the neighborhood years ago. He was pretty cool and said he only investigates complaints and glanced over at the house cross corner of me. I just smiled and said thank you, I'll fix the infractions. The old lady cross corner of me has always given me snobby looks, I guess its cause I"m from Hawaii with long hair. Anyway I got the floor jack and move the front of the car six inches. I also cut the grass and stopped watering it so it turned to dirt and had the big tree removed. Now she can look at the large dirt patch I have in front since there no code against having just dirt. I call it my desert landscaping!
I got a ticket for parking on dirt in AZ. Talked to the code enforcer and her told me that the vehicle needed to be on an improved surface, so I went down to Home Depot and bought 4 12"x12" paver type of blocks to park on, when he cam for a follow up he siad it was fine.....go figure....