Garry's Mod Wiki

WEAPON:ShouldDropOnDie

  boolean WEAPON:ShouldDropOnDie()

Description

Should this weapon be dropped when its owner dies?

This only works if the player has Player:ShouldDropWeapon set to true.

Returns

1 boolean
Return true to drop the weapon, false otherwise. Default ( if you don't return anything ) is false.