SET_PLAYER_INVINCIBLE
Make the player impervious to all forms of damage.
Signature
void SET_PLAYER_INVINCIBLE(Player player, BOOL bInvincible);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | The player index. |
bInvincible | BOOL | — |
Returns void
Description
Make the player impervious to all forms of damage.
This is the server-side RPC native equivalent of the client native SET_PLAYER_INVINCIBLE.
Usage
SetPlayerInvincible(player, bInvincible)
-- always works, by hash
Citizen.InvokeNative(0xdfb9a2a2, player, bInvincible)JavaScript and C#
SetPlayerInvincible(player, bInvincible);
// by hash
Citizen.invokeNative('0xdfb9a2a2', player, bInvincible);Function.Call((Hash)0xdfb9a2a2, player, bInvincible);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.