Garry's Mod Wiki

Player:SetArmor

Player:SetArmor( number Amount )

Description

Sets the player armor to the argument.

Arguments

1 number Amount
The amount that the player armor is going to be set to.

Example

Sets the player armor to 100 when he types "GiveArmor" at the console.

concommand.Add( "GiveArmor", function( ply ) ply:SetArmor( 100 ) end )
Output: Sets the player armor to 100

Page Links


Special Pages


Wikis

?

Render Time: 29ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 12