Revision Difference
GM:PlayerCanPickupItem#564938
<function name="PlayerCanPickupItem" parent="GM" type="hook">
<description>Returns whether or not a player is allowed to pick an item up. (ammo, health, armor)</description>⤶
<description>Returns whether or not a player is allowed to pick an item up. (ammo, health, armor)⤶
⤶
This will typically only work for base game entities, unless mod authors that implement similar entities also manually call this hook.⤶
⤶
See <page>GM:PlayerCanPickupWeapon</page> for a hook that controls weapon pickups.⤶
</description>⤶
<realm>Server</realm>
<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>