RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_ENTITY_HEALTH

SET_ENTITY_HEALTH

Sets the entity's health. healthAmount sets the health value to that, and sets the maximum health core value. Setting healthAmount to 0 will kill the entity. entityKilledBy parameter can also be 0

ENTITYBuild 1207

Signature

lua
SetEntityHealth(entity, 0, entityKilledBy)
-- returns void

Parameters

NameTypeDescription
Entity—
int—
Entity—

Usage

lua
SetEntityHealth(entity, 0, entityKilledBy)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details