For folks in the Rockport, Texas area, there are some very strange (interesting?) laws governing golf carts.
The carts have to be fully equipped: headlights, tail lights, turn signals, the "slow vehicle" triangle, seat belts must be used by all passengers, a pennant flag (like you see on bicycles), the ability to maintain a minimum speed of 35 mph (so as not to impede traffic), and must be registered with the city and have the registration tag displayed.
But -- you can't take them on or across any of the major thoroughfares and can not be operated during hours of darkness (sunset to sunrise). The Walmart and HEB (grocery stores), the major hardware store, and most of the good restaurants on across the main road which makes them inaccessible by golf cart. And, now that the time has changed, your golf cart is prohibited on city streets after about 6 p.m.
YMMV based upon your location, of course.