GetPlayerMaxHealth
The player’s maximum health (100).
Syntax
Section titled “Syntax”GetPlayerMaxHealth(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number; -1 when not connected
Example
Section titled “Example”local fraction = GetPlayerHealth(pid) / GetPlayerMaxHealth(pid)See also
Section titled “See also”GetPlayerHealth · the Vitals, stats and skills group of the index
