Price parking appropriately and make people pay for it. If land is cheap, parking is cheap, so not a big deal. If land is expensive, then no freeloading on the streets, which can be put to better use anyways (sidewalks, bike lanes, outdoor cafes etc...)
What do you mean freeloading? Do you know how many taxes do you pay to have a vehicle, gas, etc?