Skip to content

OnPlayerWake

The player is no longer knocked out.

reason is "woke" (the timer ran out), "mode" (SetPlayerKnockedOut with false), "died", "left" (the player is still a player in this callback, the goodbye follows) or "respawned". A player woken while somebody carries them stays carried and is up after the put.

function OnPlayerWake(pid, reason)
-- ...
end
Parameter Type
pid number the player
reason string "woke", "mode", "died", "left" or "respawned"

nothing

function OnPlayerWake(pid, reason)
if reason == "woke" then SendClientMessage(pid, COLOR_SERVER, "You come to.") end
end

OnPlayerKnockedOut · SetPlayerKnockedOut · the Carrying group of the index