Skip to content

function setPlayerMaxHealth (client-side)

Available since version: 0.3.0

This function will set the player/npc maximum health. If the current health exceeds the new maximum, it will be clamped down to the new value.

Declaration

void setPlayerMaxHealth(number player_id, number max_health)

Parameters

  • number player_id: Target player id.
  • number max_health: New maximum health.