RedM Natives

SET_PLAYER_INVINCIBLE

Simply sets you as invincible (Health will not deplete).

Hash0xFEBEEBC9CBDF4B12
Runtime nameSetPlayerInvincible
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x239528EACDC3E7DE

Signature

void SET_PLAYER_INVINCIBLE(Player player, BOOL toggle);

Parameters

NameTypeDescription
playerPlayer—
toggleBOOL—

Returns void

Description

Simply sets you as invincible (Health will not deplete).

Usage

Lua
SetPlayerInvincible(player, toggle)

-- always works, by hash
Citizen.InvokeNative(0xFEBEEBC9CBDF4B12, player, toggle)
JavaScript and C#
JavaScript
SetPlayerInvincible(player, toggle);

// by hash
Citizen.invokeNative('0xFEBEEBC9CBDF4B12', player, toggle);
C#
Function.Call((Hash)0xFEBEEBC9CBDF4B12, player, toggle);

See also

Sources

alloc8or RDR3 NativeDB

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