Garry's Mod Wiki

Player:DropObject

  Player:DropObject( Entity entity = nil )

Description

Drops any object the player is currently holding with either Gravity Gun, Physics Gun or +use (E key)

See also Entity:ForcePlayerDrop.

Arguments

1 Entity entity = nil
Only drop if the held entity is this entity. If left blank, drop any held entity.