Skip to content

function getPlayerHealth (client-side)

Available since version: 0.3.0

Get a player's current health.

Declaration

int|nil getPlayerHealth(int player_id)

Parameters

  • int player_id: Target player id.

Returns int|nil

Current health or nil.