Player::getsJacker

From RAGE Multiplayer Wiki
Revision as of 18:37, 16 May 2019 by Sudodude (talk | contribs) (→‎Example: Simple example for use of Player::getsJacker because I was confused with the use of this method and tested it out.)

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