1989 ford f150 5.0 v8

1989-ford-f150
My truck starts fine when its cold but as soon as it gets up to temperature it stalls and i have to wait an hr. What can the problem be?