Garry's Mod Wiki

Player:ShouldDropWeapon

  Player:ShouldDropWeapon( boolean drop )

Description

Sets whether the player's current weapon should drop on death.

This is reset on spawn to the player class's DropWeaponOnDie field by player_manager.OnPlayerSpawn.

Arguments

1 boolean drop
Whether to drop the player's current weapon or not