Player::addArmourTo: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 1: Line 1:
Same as SET_Player_ARMOUR, but ADDS 'amount' to the armor the Ped already has.
Same as SET_Player_ARMOUR, but ADDS 'amount' to the armor the Ped already has.
==Syntax==
 
<br>{{ClientsideCsJsFunction}}<br>
 
{{JSContainer|
<syntaxhighlight lang="javascript">player.addArmourTo(amount);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.addArmourTo(amount);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
Line 10: Line 13:
// todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
}}
{{Player_function_c}}
 
[[Category:Clientside API]]
{{CSharpContainer|
[[Category:TODO: Example]]
<syntaxhighlight lang="csharp">
player.AddArmourTo(int amount);
</syntaxhighlight >
==Example==
<syntaxhighlight lang="javascript">
// Add 50 armour to the player
RAGE.Elements.Player.LocalPlayer.AddArmourTo(50);
</syntaxhighlight>
}}

Revision as of 14:24, 29 December 2022

Same as SET_Player_ARMOUR, but ADDS 'amount' to the armor the Ped already has.


Client-Side Function

 C#  JavaScript



JavaScript Syntax

player.addArmourTo(amount);

Required Arguments

  • amount: int

Return value

  • Undefined

Example

// todo



C# Syntax

player.AddArmourTo(int amount);

Example

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