Skip to content

GetPlayerHealth

The player’s health.

GetPlayerHealth(pid)
Parameter Type
pid number the player

number - 0 .. GetPlayerMaxHealth; -1 when not connected

if GetPlayerHealth(pid) < 25 then SendClientMessage(pid, COLOUR_RED, "You are badly hurt.") end

GetPlayerMaxHealth · SetPlayerHealth · IsPlayerDead · the Vitals, stats and skills group of the index