It is possible, per Texas law, to address mental illness when it comes down to bail bonds, and the person can be released on personal bond.
The difference between spending a night in jail and getting out on bail may depend on whether your wallet contains a credit card.