function getPlayerHealth (client-side)
Available since version: 0.3.0
This function will return the player/npc current health, or nil if unavailable.
Declaration
number|nil getPlayerHealth(number player_id)
Parameters
numberplayer_id: Target player id.
Returns number|nil
Current health or nil.