Перейти к содержанию

SetPlayerArmor

Материал из RAGE MP Wiki Archive
Версия от 13:33, 23 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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.


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

Parameters

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

Example

<syntaxhighlight lang="csharp"> NAPI.Player.SetPlayerArmor(player, 100); </syntaxhighlight>