Skip to content

function setPlayerMaxHealth (server-side)

Available since version: 0.3.0

Set a player's maximum health.

Declaration

bool setPlayerMaxHealth(int player_id, int max_health)

Parameters

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

Returns bool

True on success.