Functions/DarkRP/Server/toggleSleep

From Official DarkRP Wiki
Jump to navigation Jump to search
Function
Function name DarkRP.toggleSleep(Player ply, any command)
Description:
Old function to toggle sleep. I'm not proud of it.
Returns: string str
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/toggleSleep]DarkRP.toggleSleep[/url][/b]

Function parameters

  1. ply (Player)
  2. The player to toggle sleep of.

  3. command (any) (optional)
  4. Set to "force" to force the sleep toggle. Set to true to arrest the player.


Function return values

  1. str (string)
  2. Empty string (since it's a called in a chat command)