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(int player_id, int max_health)

Parameters

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