Player::setPlayerInvincible

From RAGE Multiplayer Wiki

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