Activating grenades when launched

I’m very new to LUA, so please go slow with me >.<

But, i’m working on a new swep which’ll be a change from the acid sweps i’ve got so far, but i’ve got a problem. I have the swep set to launch grenades, but I have no clue how to make them activate when they come out, at the moment it’s more grenade storage than anything, since you have to pick them up with the gravgun first :stuck_out_tongue:

I’m using npc_grenade_frag for what comes out, is that my mistake?

[editline]09:08AM[/editline]

Nevermind, I got it.
I looked at the fraggrenadelauncher swep.