Player::addArmourTo: Difference between revisions
(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. | ||
<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> | ||
== | }} | ||
{{CSharpContainer| | |||
<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
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);