Skip to content

function getPlayerHealth (client-side)

Available since version: 0.0.1

This function will get the player/npc health points.

Declaration

int|null getPlayerHealth(int id)

Parameters

  • int id: the player id.

Returns int|null

the health points amount or null if player isn't created.