GET_PLAYER_INVINCIBLE
Returns the player's invincibility status.
Hash
0x0CBBCB2CCFA7DC4ERuntime name
GetPlayerInvincibleNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB721981B2B939E07Signature
BOOL GET_PLAYER_INVINCIBLE(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns BOOL
Description
Returns the player's invincibility status.
Usage
local retval = GetPlayerInvincible(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0CBBCB2CCFA7DC4E, player, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = GetPlayerInvincible(player);
// by hash
const retval = Citizen.invokeNative('0x0CBBCB2CCFA7DC4E', player, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x0CBBCB2CCFA7DC4E, player);See also
SET_PLAYER_INVINCIBLESimply sets you as invincible (Health will not deplete).
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.