Structure - Sceleratis/Adonis Wiki
The internal file structure of both Adonis's client and server can be broken down into four main parts:
This folder contains modules essential to the script's functionality. When Adonis starts, all modules within the core folder are loaded in a specific order. These modules must be loaded, in order, before the script can start doing anything.
Server Load Order:
Client Load Order:
All dependencies of the client or server are contained within the respective "Dependencies" folder. This can include pre-made scripts and UI elements.
The "Plugins" folders specific non-essential modules to be loaded. The server will automatically populate the client's Plugins folder if user defined client plugins are present in Loader > Config > Plugins
Handles the server-side loading process.
Handles the client-side loading process.
Adonis has three main tables that nearly all variables, functions, settings, objects, and folders, can be accessed from.
"server" & "client"
The "server" and "client" variables are tables containing everything related to Adonis's functionality. This includes any tables, functions, and variables added by loaded modules.
The "service" metatable is a variable unique to Adonis and it's modules that provides many functions and services used throughout both the client and server. Within the service metatable are functions to handle anything from task creation and tracking to object deletion. If the index requested is not found within the service table, it will return a game service matching the index if it can. (Specifically, it just returns