Watch the Good Funk Times online guitar lesson by Stu Hamm from Essentials: Funk Bass Grooves
Notice the difference in tone between playing open strings as opposed to fretting them. When you're able to hear the difference, you'll be able to decide what works best for you....what I show you are mere suggestions! The pull-offs may be a bit tricky if you've never played in this way before. So take your time and don't feel pressured to play it up to speed until you're comfortable with the whole line. You can also experiment with playing a similar groove that's not quite as involved that still makes the entire track groove.