Description
Turns the server on and off.
This command allows you receive remote script commands.
Functional area
Remote control
Command syntax
Syntax
server on/off/toggle |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
on/off/toggle | boolean | yes | Turn the server on or off |
Flags
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
ip | string | — | Specifies the IP address | |
port | 1 | string | — | Specifies the port to use for the network socket connection |
connectPort | string |
Return value
void
Examples
// This command will enable the server
server on -port 4344;