Hey BP

If I reside in California and want to purchase a property in another state, which state's lending laws prevail? I see a lot of advertisements from brokers who seem to have these great programs, but then I see that they don't lend at all in California. Are there any creative ways to qualify based on the other state's laws? I.e. setup an LLC another state?