Garry's Mod Wiki

Garry's Mod Wiki

  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 i, ply in ipairs( player.GetAll( ) ) do if ply:Armor() == 0 then ply:SetArmor( 100 ) end end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...