Another truck operator noticed that the fire suppression system had activated and alerted the operator.
The NSW Resources Regulator said the operator was able to exit the truck before it became engulfed in flames.
"The cause of the fire is being investigated," it said.