Revision Difference
Player:SetArmor#515969
<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.⤶
| Code = concommand.Add( "GiveArmor", function( ply )⤶
```⤶
⤶
ply:SetArmor( 100 )
```⤶
⤶
end )⤶
| Output = Sets the player armor to 100⤶
}}⤶
<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>