BEFORE READING THIS REMEMBER THAT YOUR LIFE IS WORTH MUCH MORE THAN YOUR TRUCK. IF A FIRE LOOKS OUT OF CONTROLL OR IT LOOKS LIKE ITS GONE TOO FAR ALREADY, IT HAS. WALK AWAY AND BE GLAD YOU ARE ALIVE!!!
I keep 2 extinguishers when wheeling. As bad as it sounds, you must open the hood ASAP. If you don't the fire will destroy the cable/latch and then there is nothing you can do. Depending on your rig, some don't have a good access point from the bottom. Engine splash shields and fender liners block things from getting to the engine. It is a good idea to look for the best spots ahead of time so you won't waste time or powder. Spraying at the base of the fire is best. If you can't see because of smoke, aim at the headers/exhaust manifolds, the greatest source of heat. Sweep side to side.
BTW be sure to shut the truck off, fuel presure and an engine fire get ugly.
After the fire is out, and you are sure it's out, still keep the extinguisher handy. Fluid on a header can keep dripping and restart a fire. After the crisis is really over, ie: fire out, area cool again, cause of the fire found and repaired, be sure to clean the extinguisher powder off of everything, especially wires and rubber. The powder becomes corrosive and can do its own damage if left alone.