GET_PLAYER_INVINCIBLE
Signature
BOOL GET_PLAYER_INVINCIBLE(char* playerSrc);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player handle |
Returns BOOL — A boolean to tell if the player is invincible.
Usage
local retval = GetPlayerInvincible(playerSrc)
-- always works, by hash
local retval = Citizen.InvokeNative(0x680c90ee, playerSrc, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = GetPlayerInvincible(playerSrc);
// by hash
const retval = Citizen.invokeNative('0x680c90ee', playerSrc, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x680c90ee, playerSrc);See also
SET_PLAYER_INVINCIBLEMake the player impervious to all forms of damage.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.