Garry's Mod Wiki

GM:OnPlayerPhysicsPickup

  GM:OnPlayerPhysicsPickup( Player ply, Entity ent )

Description

Called when a player +use pickups up an entity. This will be called after the entity passes though GM:AllowPlayerPickup.

See GM:GravGunOnPickedUp for the Gravity Gun pickup variant.
See GM:OnPhysgunPickup for the Physics Gun pickup variant.

Arguments

1 Player ply
The player that picked up the object
2 Entity ent
The object that was picked up.