Binding a weapon use for E

I’m making something for a weapon that when you press E, you pick something up, like the gravity gun. But, i don’t know the proper function for it, so i just have a bunch of code with no function to put it in. All i want is the name, if it exists.

Your post isn’t very clear, but I think you mean you need the in_key for +use,
**[IN_KEYS

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=IN_KEYS)**

and
**[Player.KeyPressed

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Player.KeyPressed)**
or
**[Player.KeyDown

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Player.KeyDown)**

For the function it self.