Ex-NBA star Steve Francis has been released from jail after his Saturday drunk driving arrest -- but was ordered by the judge to install a breathalyzer system into his car.
As we previously reported, cops say Francis reeked of booze and vowed revenge on officers during his arrest ... in which a bunch of weed was also allegedly found in the car.
After he bonded out Wednesday morning, he returned to court -- where the judge told him he's not allowed to drink or take drugs unless prescribed by a doctor.
He will also undergo random drug and alcohol testing.