Search…
Introduction to Resources
Servers run on a collection of resources. A resource is a collection of files - such as client scripts, server scripts, and assets - that can be started, stopped and restarted at any time.

Resource Directories

In the server, resources are loaded from a folder called resources/ in the server data directory. Any folder in the resources/ folder is parsed as a resource, except folders between [brackets] which are categories, which can contain multiple resource folders.
Each resource folder also has to contain a resource manifest reference called manifest.toml to be correctly parsed as a resource.
See this example directory tree:
1
server
2
└── resources
3
├── [category]
4
│ ├── [another]
5
│ │ └── resource-2
6
│ │ └── manifest.toml
7
│ └── resource-1
8
│ └── manifest.toml
9
└── main
10
└── manifest.toml
Copied!
In this tree, the following resources exist:
  • main
  • resource-1
  • resource-2
Copy link