When outside temp is hot, truck won't start

I have a 1992 Nissan pickup truck. When the outside temp is hot, the truck won’t start. I have replaced the starter, the starter relay and the switch under the clutch pedal. Does anyone have any other suggestions that I could try?

you have to better define what you mean by “wont start”.
do you mean it goes CLICK but the starter wont crank?
or do you mean the goes Worra Worra Worra, (that is it turns over), but wont fire up?
Or do you mean that you turn the key and nada happens?

Yeah. Nothing you replaced can fix a no start condition. Taking license here by figuring that you do mean “crank” …then it’s got to be a battery cable. You should be able to jump out the starter at the relay/solenoid. You have the main vein for power right there.