Garry's Mod Wiki

Player:GetPreviousWeapon

  Entity Player:GetPreviousWeapon()

Description

Returns the weapon the player previously had equipped.

Returns

1 Entity
The previous weapon of the player.
This is not guaranteed to be a weapon entity so it should be checked with Entity:IsWeapon for safety.