setPlayerInvincibleButHasReactions
SET_PLAYER_INVINCIBLE_BUT_HAS_REACTIONS0x6BC97F4F4BB3C04BThe 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.
setPlayerInvincibleButHasReactions(player: Player, toggle: boolean): voidsetPlayerInvincibleButHasReactions(player: Player, toggle: boolean)Usage
JavaScript
setPlayerInvincibleButHasReactions(player, toggle);Lua
setPlayerInvincibleButHasReactions(player, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
toggle | BOOL | boolean | boolean |
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