Skip to content

IsPlayerSleeping

Whether a player is lying in a bed.

From the moment they lie down to the moment they are up again, as their game last reported it (OnPlayerSleep).

IsPlayerSleeping(pid)
Parameter Type
pid number the player

boolean, or nil and "not connected"

if IsPlayerSleeping(pid) then SendClientMessage(pid, COLOR_WHITE, "You toss and turn.") end

OnPlayerSleep · EndPlayerSleep · the Beds and sleep group of the index