Skip to main content

Player::addArmourTo

Client-side function

JavaScript​

Same as Player::setArmour, but adds 'amount' to the armor the player already has.

Required Arguments​

  • amount: number

Return value​

  • void
player.addArmourTo(amount);

Example​

// Add 50 armour to the player
mp.players.local.addArmourTo(50);

C#​

player.AddArmourTo(int amount);

Example​

// Add 50 armour to the player
RAGE.Elements.Player.LocalPlayer.AddArmourTo(50);