Skip to content

function setPlayerMaxHealth (client-side)

Available since version: 0.3.0

Set a player's maximum health and clamp current health if needed.

Declaration

void setPlayerMaxHealth(number player_id, number max_health)

Parameters

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