Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:PlayerCanPickupItem( Player ply, Entity item )

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 GM:PlayerCanPickupWeapon for a hook that controls weapon pickups.

Arguments

1 Player ply
Player attempting to pick up
2 Entity item
The item the player is attempting to pick up

Returns

1 boolean
Allow pick up

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...