Auto pickup item

Hello!
I want to know the function for auto-pick the item(weapon,entity…) and not press “e”(“use”) on item.
If anybody knows the respond is welcomed :slight_smile:
Thank you!

http://gmod-wiki.tk/index61ee.html?title=Player.Give


Player:Give("weapon_crowbar")

Its not this no.

This is the function which decides whether or not a player can pick up a weapon. It can be modified to only pick up a weapon if use is pressed on it
function GM:PlayerCanPickupWeapon( _p, _w )

Can player pickup entity?