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
numberplayer_id: Target player id.numbermax_health: New maximum health.