Tex. Code Crim. Proc. art. 42A.506
If the judge places a defendant on community supervision and the defendant is determined to be a person with mental illness or a person with an intellectual disability, as provided by Article 16.22 or Chapter 46B or in a psychological evaluation conducted under Article 42A.253(a)(6), the judge may require the defendant as a condition of community supervision to submit to outpatient or inpatient mental health or intellectual disability treatment if:
(1) the defendant's:
(2) the judge determines, in consultation with a local mental health or intellectual disability services provider, that mental health or intellectual disability services, as appropriate, are available for the defendant through:
Added by Acts 2015, 84th Leg., R.S., Ch. 770 (H.B. 2299), Sec. 1.01, eff. January 1, 2017.