Can I drive a rented golf cart on the street in Sacramento?

Only where state and local law allow it. In most places a standard golf cart is limited to private property and specially designated streets, while a street-legal low-speed vehicle can use roads with lower speed limits.
A low-speed vehicle has headlights, turn signals, mirrors, seat belts and a registration, and tops out around 25 mph. Ask the supplier which type you are renting, then check California law and Sacramento rules for where it can go. For events and private sites in Sacramento, a standard cart is usually all you need. Tell the supplier how many seats you need and whether you want gas or electric. People in and around Sacramento search for this about 60 times a month, the #17 most searched rental here. Street use of golf carts in California is limited by the Vehicle Code and local ordinances, so confirm your route before you book.
Full guide: Golf Cart Rental