Garry's Mod Wiki

Revision Difference

WEAPON:SetWeaponHoldType#512185

<function name="SetWeaponHoldType" parent="WEAPON" type="hook">⤶ <ishook>yes</ishook>⤶ <description>⤶ Sets the hold type of the weapon. This must be called on **both** the server and the client to work properly.⤶ ⤶ **NOTE:** You should avoid calling this function and call <page>Weapon:SetHoldType</page> now.⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="name" type="string">Name of the hold type. You can find all default hold types [here](/gmod/Hold_Types)</arg>⤶ </args>⤶ </function>⤶ ⤶