ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPlayerArmour

Function

getPlayerArmour

ServerPlayersTrilogy Hub only

Returns the player's armour (0-100).

Syntax

float getPlayerArmour(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

Armour.

Example

addCommandHandler("pancerz", function(player)
    outputChatBox(("Pancerz: %.0f"):format(getPlayerArmour(player)), player)
end)

See also