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.
Global JCMP class. Use jcmp in your script.
Name | Type | Description |
---|---|---|
packages | Array<Package> | read only all loaded packages |
events | EventSystem | read only event system |
networkVersion | number | read only the current network version of the server |
version | string | read only |
approvedWebsites | Array | read only |
ui | JCMPUINamespace | read only |
viewportSize | Vector2f | read only |
localPlayer | LocalPlayer | read only |
players | Array<NetworkPlayer> | read only all players |
world | World | read only |
settings | Settings | read only |
vehicles | Array | read only |
Prints a message to scripting.log.
Name | Type | Description |
---|---|---|
message | string | Message to append to scripting.log |
Outputs message to a specified file.
Name | Type | Description |
---|---|---|
filename | string | Name of the file you want to print to |
message | string | Message to append to file |
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.