SetPlayerArmor

From GTA Network Wiki
Jump to: navigation, search

SetPlayerArmor
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This function gives a player armor.

Syntax

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

Required Arguments

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

Usage example(s)

Setting a player armor.

public void OnPlayerRespawnHandler(Client player)
{
   NAPI.Player.SetPlayerArmor(player, 100); // sets the respawned player to have full armor.
}

Changelog

Version Description
1.0 Release.

References