I agree with Jeff, if you want the best chances of AP, don't smoke weed before trying it. It won't make it impossible it depends on a lot of circumstances, I Ap'ed once drunk and a little high (involuntary sleep paralysis if i remember correctly) I don't remember how many hours it was before I smoked.
HOWEVER, let me tell you a little story of when I first started AP. It was very hard for me to not get too excited, soon my heart rate would increase and I would wake up. Sometimes I couldn't always stay relaxed enough to transition from sleep paralysis (the experience was intense and I wasn't always mentally ready for it). I never liked weed at this point. But one summer night at a party I smoked because my friends all asked me too. And I thought it was great, and as I ran home I realized that this strange experience felt very similiar to an AP. This got me very excited to try AP again, and I began to have AMAZING success (a large part of that was due to that realization, which increased by ability to relax and just go with it, don't fight it). I felt like I became this pyschedelic zen warrior.
So in terms of your question, that is how weed has helped me astral project (but not doing it while high). IMO, weed is a tool, but it has to be used intelligently and not abused.
btw, when I smoke moderately high amounts, I feel like I am in an AP