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

Function

setPlayerArmour

ServerPlayersTrilogy Hub only

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

Syntax

bool setPlayerArmour(player thePlayer, float armour)

Arguments

thePlayerplayer
The player.
armourfloat
Armour.

Returns

true on success.

Example

addEventHandler("onPlayerSpawn", root, function()
    setPlayerArmour(source, 100)
end)

See also