Garry's Mod Wiki

Player:SwitchToDefaultWeapon

  Player:SwitchToDefaultWeapon()

Description

Attempts to switch the player weapon to the one specified in the "cl_defaultweapon" convar, if the player does not own the specified weapon nothing will happen.

If you want to switch to a specific weapon, use: Player:SetActiveWeapon