I wouldn't have given money, however if I had a few bucks to spare, I would have followed him to the gas station, and put some gas in his truck, just enough so he could get to a homeless shelter.
I never give anyone money simply because I am afraid that wouldn't be used it for what it's intended for. (i.e. drugs, booze)