Requires LA, San Diego, and San Francisco counties to create a deferred entry of judgment program for defendants with a mental health or substance abuse disorder arrested for disorderly conduct, public nuisance, or trespassing; requires a mental health professional or social worker to work with the people arrested to address housing and services; requires the judge to require the defendant to participate in programs, chosen by the court and with the advice of the mental health professional or social worker, that are designed to provide assistance, shelter, and treatment for people with mental health or substance abuse disorders.