getPedArmour
Server
Gets the armour of a ped or player.
float|false getPedArmour(ped ped)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
Returns
The armour, or false if the element is not a ped or a player.
Example
addCommandHandler("armour", function(player)
outputDebugString(getPlayerName(player) .. " armour: " .. getPedArmour(player))
end)