Skip to main content

Player::setInvincible

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​

player.setInvincible(toggle);

Required Arguments​

  • toggle: Boolean

Return value​

  • Undefined

Example​

// todo