Player::getsJacker: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
m (→‎Example: added js tag)
 
(2 intermediate revisions by the same user not shown)
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 JS</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
/* Player::getsJacker */
let localPlayerJacker = mp.players.local.getsJacker();
 
/* CLIENT-SIDE ADDARMOURTO localPlayerJacker 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]]

Latest revision as of 19:01, 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 JS
/* Player::getsJacker */
let localPlayerJacker = mp.players.local.getsJacker();

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

See also