Skip to content

function isPlayerUnconscious (client-side)

Available since version: 0.0.1

The function is used to check whether player/npc is in unconscious state.
The player/npc will be unconscious, when it gets beaten up, but not killed.

Declaration

bool|null isPlayerUnconscious(int id)

Parameters

  • int id: the player id.

Returns bool|null

true when player is unconscious, otherwise false or null if player isn't spawned.