Garry's Mod Wiki

Player:Armor

number Player:Armor()

Description

Returns the player's armor.

Returns

1 number
The player's armor.

Example

Loops through all the players and checks if they have any armor, if they do not, then sets their armor to 100.

for _, v in pairs( player.GetAll( ) ) do if v:Armor( ) == 0 then v:SetArmor( 100 ) end end

Page Links


Special Pages


Wikis

?

Render Time: 29ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 10
Render Body 0
Render Sidebar 11