With scriptwriting (tv), it's supposed to be 50% up front, then the rest when it's signed off (although the BBC do 50% up front, 25% on turning in first draft, final 25% when it's all signed off, which is better to plan around).