When a truck is hard to start when it's hot out it can be caused by vapor lock in the fuel lines or even a bad ignition coil.
When it's really hot out and I have a full tank of gasoline my truck gets vapor lock and I have to sometimes open the gas cap a little to vent the gas tank and then the truck starts.
When vapor lock occurs there is vapor preventing the actual gasoline from flowing through the lines and this occurs mostly when you have a full tank of gasoline.
If your engine just is hard to start when the engine gets hot then it could be your ignition coil or ignition coils depending on how many ignition coils you have.
My Truck has just one ignition coil and sometimes when it gets hot the ignition coil causes hard starting of the engine or sometimes no start.
Replacing the ignition coil solves the problem in those cases.
If it's not the ignition coil it could also be the ignition control module or the vapor lock issue.