SetPlayerArmor

From RAGE Multiplayer Wiki
Revision as of 06:21, 13 December 2019 by Bonus (talk | contribs) (Add information about "max armor/armour")

Sets the armor (also called armour in GTA 5) of a player.
The default max armor is 100.
If you want to change that, you can use SetPlayerMaxArmour at clientside.


C# Syntax

void NAPI.Player.SetPlayerArmor(Client player, int armor);

Parameters

  • player: Parameter input should be in Client type.
  • armor: Parameter input should be in int type.

Example

NAPI.Player.SetPlayerArmor(player, 100);