Garry's Mod Wiki

Revision Difference

GM:PlayerCanPickupItem#528920

<function name="PlayerCanPickupItem" parent="GM" type="hook"> <ishook>yes</ishook> <description>Returns whether or not a player is allowed to pick an item up.</description> <description>Returns whether or not a player is allowed to pick an item up. (ammo, health, armor)</description> <realm>Server</realm> <predicted>No</predicted> <args> <arg name="ply" type="Player">Player attempting to pick up</arg> <arg name="item" type="Entity">The item the player is attempting to pick up</arg> </args> <rets> <ret name="" type="boolean">Allow pick up</ret> </rets> </function>