Player::getsJacker: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(→‎Example: Simple example for use of Player::getsJacker because I was confused with the use of this method and tested it out.)
Line 6: Line 6:
*'''Ped handle or object'''
*'''Ped handle or object'''
==Example==
==Example==
This example will use the returned value from Player::getsJacker to add 25 armour to the specified entity (client-side). - 2019-5-16
<div class="header" style="background-color: #00FF00; color: #FFFFFF; border: 2px solid #00FF00;">
<div style="margin: 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
 
 
 
/* Player::getsJacker */
let localPlayerJacker = mp.players.local.getsJacker();
 
/* CLIENT-SIDE ADDARMOURTO localPlayerJacker ADD
* ADDS 25 ARMOUR TO PLAYER.
*/
mp.players.at(localPlayerJacker).addArmourTo(25);
 
 
</syntaxhighlight>
</syntaxhighlight>
</div>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 18:37, 16 May 2019

Syntax

player.getsJacker();

Required Arguments

Return value

  • Ped handle or object

Example

This example will use the returned value from Player::getsJacker to add 25 armour to the specified entity (client-side). - 2019-5-16

Client-Side
/* Player::getsJacker */
let localPlayerJacker = mp.players.local.getsJacker();

/* CLIENT-SIDE ADDARMOURTO localPlayerJacker ADD
 * ADDS 25 ARMOUR TO PLAYER.
*/
mp.players.at(localPlayerJacker).addArmourTo(25);

See also