Skip to content

System library ​

No description available

Classes ​

Functions ​

mnscript
number System.ClockSpeed() 
  • Gets the computer's clock speed.
mnscript
string System.GetIP() 
  • Returns the IP of the terminal
mnscript
number System.GetPeripheralCount() 
  • Returns the number of peripherals connected (directly or indirectly) to the terminal
  • Returns the number of connected peripherals with the given type (directly or indirectly)
mnscript
Process[] System.GetRunningProcesses() 
  • Gets a list of all running MNScript processes.
mnscript
Player System.GetUser() 
  • Returns the Player using the terminal
mnscript
string System.GetUserName() 
  • Returns the username logged in to the terminal
mnscript
string System.GetUserSteamID() 
  • Returns the SteamID for the account logged in to the terminal
mnscript
bool System.HasPeripheral(string) 
  • Returns whether a peripheral with the given type is connected to the terminal
mnscript
bool System.IsKiosk() 
  • Returns whether the system is a kiosk.
mnscript
bool System.IsLocked() 
  • Returns whether the terminal is locked or not.
mnscript
bool System.IsProcessRunning(string) 
  • Gets whether a process with the given Id is running.
mnscript
bool System.IsServer() 
  • Returns whether the system is a server.
mnscript
System.Lock() 
  • Locks the terminal.
mnscript
System.OpenWebpage(string) 
  • Opens the web browser and loads the given URL
mnscript
number System.ProcessRuntime(string) 
  • Gets the runtime of a process with the given Id.
mnscript
System.RunCommand(string) 
  • Runs a console command
mnscript
System.Shutdown() 
  • Shuts down the terminal
mnscript
System.Sleep(number) 
  • Pauses the program for the given time
mnscript
bool System.StartProcess(string, string) 
  • Executes a MNScript .mscx file
mnscript
number System.StopAllProcesses() 
  • Closes all active MNScript processes.
mnscript
bool System.StopProcess(string) 
  • Stops an MNScript process with the given name.
mnscript
number System.SysTime() 
  • Returns a highly accurate time since start up
mnscript
number System.Time() 
  • Returns the current system Unix time