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.
The package.json is the main configuration for your Package.
It is recommended to install npm(bundles with node.js) and use the npm init
command (documentation).
jcmp_dependencies
You can force the Server or Client to wait for certain packages. An example that is used by the command-manager:
In order for the Command Manager to work, it requires the chat package to be loaded first.
This can be enforced in the package.json
:
{
"name": "command-manager",
"jcmp_dependencies": ["chat"]
}
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.