Garry's Mod Wiki

Revision Difference

Player:SetMaxArmor#528563

<function name="SetMaxArmor" parent="Player" type="classfunc"> <description> Sets the maximum amount of armor the player should have. This affects default built-in armor pickups, but not <page>Player:SetArmor</page>. <bug issue="4707">This limit isn't reset after a player respawn. This means that if you set the max armor to 50 and the player dies, the limit will always be 50 instead of the limit set by the player's class (like <page>Entity:SetMaxHealth</page>). **This will be fixed in the next update.**.</bug>⤶ </description> <realm>Server</realm> <added>2020.10.14</added> <args> <arg name="maxarmor" type="number">The new max armor value</arg>⤶ <arg name="maxarmor" type="number">The new max armor value.</arg>⤶ </args> </function>