Term: fair-weather friend
Example: bill is a fair-weather friend because he only comes over when i have weed
Definition: a friend who is only around when they need you