Skip to content

function setPlayerHealth (client-side)

Available since version: 0.3.0

This function will set the player/npc health, not exceeding his current max health.

Declaration

void setPlayerHealth(number player_id, number health)

Parameters

  • number player_id: Target player id.
  • number health: New health value.