There are no rules against sleeping in the bed of your truck but you do want to check with local laws to make sure camping is allowed. Many locations will require a permit.