Skip to main content

Shared API

📄️ Resources

Everything a JC4MP server runs is a resource: a folder of Lua scripts (and any files they need, such as webview pages and images) that can be started, stopped and restarted on its own. A gamemode, a chat, an admin menu and a login system are all separate resources. This page explains how resources are laid out, how they start and stop, how their files reach the players, and the parts of the Resources API available on both sides; starting, stopping and restarting resources from scripts is on Resources (server).