I remember being told that an adult could sleep in a car, but with a child, sleeping in a car is considered "endangerment". Doubly so if you're a CIS gender male with a female child.
This was a Texas CPS social worker. We just had a flood and were brainstorming ideas for temporary shelter for folks.