Player::setPlayerInvincible: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
Line 1: Line 1:
Simply sets you as invincible (Health will not deplete).<br><br>Use 0x733A643B5B0C53C1 instead if you want Ragdoll enabled, which is equal to:<br>*(DWORD *)(playerPedAddress + 0x188) |= (1 &lt;&lt; 9);
Simply sets you as invincible (Health will not deplete).<br><br>Use 0x733A643B5B0C53C1 instead if you want Ragdoll enabled, which is equal to:<br>*(DWORD *)(playerPedAddress + 0x188) |= (1 &lt;&lt; 9);
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.player.setPlayerInvincible(toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setInvincible(toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
*'''toggle:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Latest revision as of 16:06, 23 May 2018

Simply sets you as invincible (Health will not deplete).

Use 0x733A643B5B0C53C1 instead if you want Ragdoll enabled, which is equal to:
*(DWORD *)(playerPedAddress + 0x188) |= (1 << 9);

Syntax

mp.game.player.setInvincible(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also