Garry's Mod Wiki

Revision Difference

Player:SetArmor#512499

<function name="SetArmor" parent="Player" type="classfunc">⤶ <description>Sets the player armor to the argument.</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="Amount" type="number">The amount that the player armor is going to be set to.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Sets the player armor to 100 when he types "GiveArmor" at the console.</description>⤶ <code>⤶ concommand.Add( "GiveArmor", function( ply )⤶ ply:SetArmor( 100 )⤶ end )⤶ </code>⤶ <output>Sets the player armor to 100</output>⤶ ⤶ </example>