PlayerClient

setPlayerInvincibleButHasReactions

SET_PLAYER_INVINCIBLE_BUT_HAS_REACTIONS0x6BC97F4F4BB3C04B

The GTA V native SET_PLAYER_INVINCIBLE_BUT_HAS_REACTIONS of the PLAYER namespace, as LS:MP client scripts call it: the global function setPlayerInvincibleButHasReactions, in JavaScript and in Lua.

SignatureJavaScript
setPlayerInvincibleButHasReactions(player: Player, toggle: boolean): void
SignatureLua
setPlayerInvincibleButHasReactions(player: Player, toggle: boolean)

Usage

JavaScript
setPlayerInvincibleButHasReactions(player, toggle);
Lua
setPlayerInvincibleButHasReactions(player, toggle)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void SET_PLAYER_INVINCIBLE_BUT_HAS_REACTIONS(Player player, BOOL toggle)
Hash
0x6BC97F4F4BB3C04B
Introduced
Game build 463 legacy numbering
Formerly
_SET_PLAYER_INVINCIBLE_KEEP_RAGDOLL_ENABLED

Open in the interactive natives reference