advice needed truck shutting off
Hey guys, this is my first post, i hate for it to be a negative one but I hope yall can help. I have a 99 f-250 and recently it has been shutting off/ stalling in the rain and when I hit bumps. Sometimes it will lose power then gain rpms other times it will shut completely off. The check engine light comes on momentarily when this happens and when I try to start it back up. Usually it will start right back up, but today was a different story. I ended up getting a tow home and have been researching the problem ever since. Any help on what might be causing this would be greatly appreciated, thanks!