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.
A scripting package that is available or running already
This class currently lacks documentation for the constructor.
Name | Type | Description |
---|---|---|
name | string | read only the Package's name |
dir | string | read only the path to the package |
valid | boolean | read only whether the configuration of the package is valid |
config | string | read only JSON-encoded string of the package.json |
Starts the package
returns: boolean
//Start all the packages
function main(){
jcmp.packages.forEach(p => {
p.Start()
});
}
main();
Stops the package
//Stop all the packages
function main(){
jcmp.packages.forEach(p => {
p.Stop()
});
}
main();
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.