M MY Multiplayer: Wiki
Side
Kind

setPedArmour

Server

Sets the armour of a ped or player and sends it to the clients.

bool setPedArmour(ped ped, float armour)

Parameters

NameTypeDescription
pedpedThe ped or player.
armourfloatThe 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.

See also