Auto pickup item

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!


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?