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.
Syntax
Section titled “Syntax”function OnPlayerWake(pid, reason) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
reason |
string | "woke", "mode", "died", "left" or "respawned" |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerWake(pid, reason) if reason == "woke" then SendClientMessage(pid, COLOR_SERVER, "You come to.") endendSee also
Section titled “See also”OnPlayerKnockedOut · SetPlayerKnockedOut · the Carrying group of the index
