PlayerClient

getPlayerInvincible

GET_PLAYER_INVINCIBLE0xB721981B2B939E07

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

SignatureJavaScript
getPlayerInvincible(player: Player): boolean
SignatureLua
getPlayerInvincible(player: Player): boolean

Usage

JavaScript
const result = getPlayerInvincible(player);
Lua
local result = getPlayerInvincible(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the Player's Invincible status.

Reference

Namespace
Player PLAYER
In the game
BOOL GET_PLAYER_INVINCIBLE(Player player)
Hash
0xB721981B2B939E07

Open in the interactive natives reference