Garry's Mod Wiki

Weapon:AllowsAutoSwitchTo

  boolean Weapon:AllowsAutoSwitchTo()

Description

Returns whether the weapon allows to being switched to when a better ( Weapon:GetWeight ) weapon is being picked up.

Returns

1 boolean
Whether the weapon allows to being switched to.