Garry's Mod Wiki

Revision Difference

Player:StripWeapons#515781

<function name="StripWeapons" parent="Player" type="classfunc"> <description>Removes all weapons from a certain player</description> <realm>Server</realm> </function> <example> <description>⤶ Removes all the weapons from the player with the ID 1⤶ <description>Removes all the weapons from the player with the ID 1⤶ ``` ⤶ | Code = player.GetByID( 1 ):StripWeapons()⤶ | Output = Player 1 has no weapons anymore⤶ </description>⤶ <code>player.GetByID( 1 ):StripWeapons()</code>⤶ <output>Player 1 has no weapons anymore⤶ ``` ⤶ </description>⤶ </output>⤶ </example>