getPlayerInvincible
GET_PLAYER_INVINCIBLE0xB721981B2B939E07The 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.
getPlayerInvincible(player: Player): booleangetPlayerInvincible(player: Player): booleanUsage
JavaScript
const result = getPlayerInvincible(player);Lua
local result = getPlayerInvincible(player)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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