Garry's Mod Wiki

Revision Difference

Player:SwitchToDefaultWeapon#512556

<function name="SwitchToDefaultWeapon" parent="Player" type="classfunc">⤶ <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: <page>Player:SetActiveWeapon</page>⤶ </description>⤶ <realm>Server</realm>⤶ <file line="195-L206">lua/includes/extensions/player.lua</file>⤶ </function>⤶ ⤶