RedM Natives

GET_PLAYER_INVINCIBLE

Hash0x680C90EE
Runtime nameGetPlayerInvincible
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL GET_PLAYER_INVINCIBLE(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*

The player handle

Returns BOOL — A boolean to tell if the player is invincible.

Usage

Lua
local retval = GetPlayerInvincible(playerSrc)

-- always works, by hash
local retval = Citizen.InvokeNative(0x680c90ee, playerSrc, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetPlayerInvincible(playerSrc);

// by hash
const retval = Citizen.invokeNative('0x680c90ee', playerSrc, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x680c90ee, playerSrc);

See also

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.