Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.
Information about the Server
Name | Type | Description |
---|---|---|
args | Array<Argument> | read only Server Arguments (flags) |
config | string | read only JSON-encoded string of the config.json |
currentTickRate | number | read only server fps |
clients | Array<RemoteClient> | read only connected clients |
Stops the Server
jcmp.server.Stop();
Restarts the Server
jcmp.server.Restart();
Adds a handler for the server input (console input)
Name | Type | Description |
---|---|---|
handler | function | input handler |
jcmp.server.AddInputHandler(text => {
console.log(`input: ${text}`);
});
Name | Type | Description |
---|---|---|
p1 | string |
By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.