There are not any laws against sleeping in a vehicle in the state of Montana. However, One cannot live in a camper or RV on any specific property within city limits for more than 5 days at a time. One can get around that by living an RV park, and registering the RV as a living space.