Skip to content

GetPlayerMaxHealth

The player’s maximum health (100).

GetPlayerMaxHealth(pid)
Parameter Type
pid number the player

number; -1 when not connected

local fraction = GetPlayerHealth(pid) / GetPlayerMaxHealth(pid)

GetPlayerHealth · the Vitals, stats and skills group of the index