setPedArmour
Server
Sets the armour of a ped or player and sends it to the clients.
bool setPedArmour(ped ped, float armour)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
| armour | float | The new armour. |
Returns
true if the armour was set. false if the element is not a ped or a player or the value is not a finite number.
Example
addEventHandler("onPlayerSpawn", root, function()
setPedArmour(source, 100)
end)NoteThe value is not clamped to a range: any finite number is accepted.