📄️ Server events
Every built-in event the server fires to its scripts. Register a handler with Event.Add in any server or shared script; see Events for how handlers, cancelling and custom events work. Messages sent by clients with Net.Send are not events of this list, see Net.
📄️ Resources (server)
Server scripts can start, stop and restart resources with the Resources table, and the server configuration decides which resources start with the server; the resource layout, lifecycle, require and the functions available on both sides are on the shared Resources page.
📄️ Net (server)
Server scripts send events to players' clients with the Net.SendTo... / Net.Broadcast functions, find out who sent an event with Net.Sender, and make HTTP requests with Net.Fetch; how remote events work, what can be sent and how to receive events with Net.AddEvent is on the shared Net page.
📄️ HTTP
Server scripts can call web services (a Discord webhook, a stats API, your own website) with Net.Fetch. It is part of the Net table and exists only on the server; client scripts have no HTTP access.
📄️ SQL
The SQL table gives server scripts a SQLite database for anything that must survive a restart: accounts, bans, money, saved vehicles, statistics.
📄️ Server
The Server table holds information about the running server itself.
📄️ Chat
The Chat table sends server messages to every player's chat. The chat window itself is not built into the game: it is a resource (the bundled chat resource, or your own). Chat resources show messages when they receive the OnChat event on the client, and send the players' own messages to the server with Net events.
📄️ Server console
These commands are typed in the server's console window. They are listed here for server owners; scripts can't add or call them (scripts use Resources (server) and the player functions instead).
📄️ World (server)
On the server, the World table spawns and destroys networked objects (vehicles, mounted guns, rigid objects, NPCs, tethers, sandstorms) and sets off explosions.
📄️ Weather (server)
On the server, the Weather table syncs the world's tornado and cloud settings to every player.
🗃️ Objects
5 items