SetPlayerArmor: Difference between revisions
(Created page with "Sets the armor of a player. {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerArmor(Client player, int armor);}} {{Parameters}} *'''...") |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Sets the armor of a player. | Sets the armor (also called armour in GTA 5) of a player.<br/> | ||
The default max armor is 100.<br/> | |||
If you want to change that, you can use [[SetPlayerMaxArmour]] at clientside. | |||
{{CSharpContainer| | {{CSharpContainer| | ||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerArmor( | {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerArmor(Player player, int armor);}} | ||
{{Parameters}} | {{Parameters}} | ||
*'''player:''' Parameter input should be in ''' | *'''player:''' Parameter input should be in '''Player''' type. | ||
*'''armor:''' Parameter input should be in '''int''' type. | *'''armor:''' Parameter input should be in '''int''' type. | ||
Latest revision as of 13:33, 23 December 2022
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(Player player, int armor);
Parameters
- player: Parameter input should be in Player type.
- armor: Parameter input should be in int type.
Example
NAPI.Player.SetPlayerArmor(player, 100);