SET_PLAYER_INVINCIBLE
Make the player impervious to all forms of damage. **This is the server-side RPC native equivalent of the client native [SET_PLAYER_INVINCIBLE](?\_0x239528EACDC3E7DE).**
CFX
Signature
lua
SetPlayerInvincible(PlayerId(), true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Player | The player index. | |
| BOOL | — |
Usage
lua
SetPlayerInvincible(PlayerId(), true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
