RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_PLAYER_INVINCIBLE

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 void

Parameters

NameTypeDescription
PlayerThe 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details