Can you sleep in your car in New York State? Can you get a ticket or get arrested for doing this? Are there places where its ok, and then where it's not cool?
There is one thing all of these actual laws have in common. They all make absolutely zero sense. Some of them you might actually be breaking without realizing.