Miami back in the 90's I did that
Funny, I first did it when I was only 17, had gotten my first decent car and the neighbor across the street used to carry her little yapper across the street to our side and set it down when she checked her mail, and every day it immediately ran to my car and hiked its leg. I attached the charger my uncle had on his dog kennel to the car and then watched the next morning, ,,,, here comes Gladys, dog goes to ground, dog hikes leg, screams and runs back to her house, next day she came across st set dog down and it immediately ran straight back.
after that I started using the fence charger often. Being in the service I was often away for weeks at a time and it protected my vehicles at home on more than one occasion. I even had a kid in Miami come to me complaining that my car attacked him. but it was in my fenced back yard so he backed off.