Cal. Health & Safety Code § 50801.5
(b) The regulations adopted pursuant to this section shall ensure that emergency shelter and services will be provided on a first-come-first-served basis for whatever time periods are established by the shelter. No individual or household may be denied shelter or services because of an inability to pay. Nothing in this provision shall be construed to preclude a shelter from accepting payment vouchers provided through any other public or private program so long as no shelter beds are reserved beyond sundown for that purpose. Notwithstanding Section 11135 of the Government Code or any other provision of law, nothing in this section shall be construed to preclude a provider of emergency shelter or transitional housing from restricting occupancy on the basis of any of the following:
(3) Military veteran status, if the veterans served possess significant barriers to social reintegration and employment due to a physical or mental disability, substance abuse, or the effects of long-term homelessness that require specialized treatment and services and the provider of emergency shelter or transitional housing also provides the specialized treatment and services.
However, in the case of families, providers of emergency shelter or transitional housing shall provide, to the greatest extent feasible, adequate facilities within their range of services so that all members of a family may be housed together, regardless of age and gender.