From DarkRP
Jump to navigation Jump to search
Function name DarkRP.toggleSleep(Player ply, any command)
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=]DarkRP.toggleSleep[/url][/b]

Function parameters[edit]

  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[edit]

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