Garry's Mod Wiki

Revision Difference

Player:StripWeapon#512559

<function name="StripWeapon" parent="Player" type="classfunc">⤶ <description>Removes the specified weapon class from a certain player</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="weapon" type="string">The weapon class to remove</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Removes the crowbar from the player with the ID 1</description>⤶ <code>player.GetByID( 1 ):StripWeapon("weapon_crowbar")</code>⤶ <output>Crowbar removed from player 1</output>⤶ ⤶ </example>