OPEN77 Lua resources

How to Install and Manage Lua Resources on OPEN//77

To install a Lua resource on an OPEN//77 server, copy its folder into your server’s resources/ directory, add its name to resources.load in server.jsonc, then restart the server or run refresh followed by ensure <name> in the server console. Manage it afterwards with start, stop, restart and reload, or from the Warden admin panel.

Everything on an OPEN//77 server, from game modes and HUDs to scripts, maps and vehicles, is delivered as a resource. This guide covers how resources are structured, how to install them, how dependencies work, and how to fix the errors you’re most likely to hit.

OPEN//77 is not FiveM. The manifest name, load rules and several commands differ, so don’t assume FiveM instructions apply.

What Are Lua Resources in OPEN//77?

A resource is a package of server and client Lua scripts, permissions, dependencies and web assets. The server loads the resources you select and distributes their client files to joining players. Scripts run on Lua 5.4.

Each resource describes itself in a manifest file named open77.lua. Server scripts stay on the server. Players download only the manifest, the client and shared files, and declared assets, never the server/ files.

How Does the OPEN//77 Resource System Work?

The server follows a simple sequence:

  1. Select. The resources.load rules in server.jsonc decide which resources the server knows about.
  2. Start. Selected resources whose manifest has auto_start true start automatically when resources.autoStart is on. A selected resource with auto_start false waits for you to run ensure <resource>.
  3. Sign and distribute. Only selected resources that reach the Running state are packaged and signed for clients.
  4. Download. When a player connects, their client verifies the signed set, each manifest, each chunk and each file before the game loads.

The player’s load screen reports manifest, downloading, verifying, ready or failed. A signature, hash or path error blocks entry and disconnects the client.

Selection and startup are separate gates. A resource that isn’t selected is unknown to ensure.

Prerequisites Before Installing Resources

  • A running OPEN//77 dedicated server. If you haven’t built one yet, follow our OPEN//77 server hosting setup guide first.
  • Access to the server console or the Warden console.
  • Access to edit the server.jsonc you actually launch.
  • The resource’s own README. Official resources document what they do, what they need, how to turn them on, and whether they start automatically.

Understanding the Resource Folder Structure

Resources live in a folder named by resources.root, usually resources/. The official layout groups them in category folders:

text
resources/
  system/       official platform resources: open77_shell, open77_chat, open77_props, open-voice, ...
  gamemodes/    playable modes and their HUDs: freeroam, race, pursuit, open77_deathmatch, ...
  dev/          examples and harnesses: open77_example, open77_dbtest
  assets/
    loaders/    archivexl, tweakxl
    maps/       world packages such as kujira_world
    vehicles/   vehicle packages
    mods/       other third-party packages

A folder without an open77.lua file is a category, not a resource. A resource in a category folder is found by its name, so resources/rp/rp_salvage is found like resources/rp_salvage.

Your server download already contains system/ and the default game mode. Don’t copy system/ over it unless you mean to update one resource.

What goes inside a resource

This is the official example manifest:

lua
resource "garage"
version "1.0.0"
auto_start true

shared_script "shared/config.lua"
server_script "server/main.lua"
client_script "client/main.lua"

web_ui_page "web/index.html"
web_files { "web/**" }
files { "assets/blips/*.png", "assets/audio/*.wav" }
preload_mod "dist/world-assets.zip"
permissions { "network.events" }
Directive What it does
resource, version The resource’s name and version.
auto_start Whether the host starts it automatically when selected.
server_script Runs on the server only and is never sent to players.
client_script Sent to and run on each player’s client.
shared_script Runs on both sides.
web_ui_page, web_files A WebUI page and the files served to it.
files Generic client assets, downloaded before Lua starts.
preload_mod Inert game assets that REDengine must see before Lua starts.
permissions Capabilities the resource asks for.

Not every resource needs all of these. A resource can also list its exports in the manifest, with exports { ... } for the client and server_exports { ... } for the server.

How to Install a Lua Resource Step by Step

  1. Read the resource’s README. Note what it needs and whether it says Starts:.
  2. Copy the folder into resources/. Category subfolders are fine. Keep the folder name the README specifies.
  3. Add its name to resources.load in server.jsonc:
jsonc
"resources": {
  "enabled": true,
  "root": "../resources",
  "load": [
    "open77_shell",
    "open77_chat",
    "open77_vehicles",
    "freeroam",
    "open77_freeroam",
    "garage"
  ],
  "autoStart": true
}
  1. Start it. Either restart the server, or on a running server run these in the server console or Warden console:
text
refresh
ensure garage
  1. Verify. Run resources to list the final discovered set, and watch the log for start messages or errors.

Why a restart is sometimes needed. refresh rescans the manifests on disk, but it doesn’t re-read server.jsonc. If a name wasn’t in resources.load when the server started, it needs the restart. This is what’s behind the “not found” message covered in the errors section.

The first-run wizard writes an exact list of names. The docs recommend an exact list for production, so a new development resource can’t silently join a live server.

Installing community resources through Warden

Warden’s Workshop tab can install, update, uninstall and roll back community resources. It shows a reviewed plan before anything changes. Browsing works by default, but installing requires the file gateway setting in the warden block. See our Warden guide for the setup.

Configuring and Managing Installed Resources

Load rules

resources.load is an ordered list of rules, read from left to right:

Rule Result
"freeroam" Selects <root>/freeroam.
"open77_*" Selects matching immediate child directories.
"packs/*" Selects resources one level below <root>/packs.
"packs/**" Recursively selects resources anywhere below <root>/packs.
"garage/open77.lua" Selects the resource containing that exact manifest.
"!open77_debug" Removes matches selected by an earlier rule.

Later rules can remove or re-add a resource:

jsonc
"load": [
  "open77_*",          // add every immediate open77_ resource
  "!open77_debug",     // remove debug
  "open77_debug"       // re-add debug deliberately
]

Omitting load is the same as ["*"] and loads everything. An empty list selects nothing.

Day-to-day commands

These are the documented server commands:

text
resources
refresh
ensure <resource>
start <resource>
stop <resource>
restart <resource>
reload <resource>

Warden also offers per-resource start, stop, restart and hot reload from the browser.

How changes reach players

With autoStart on, the server notices any valid change to a resource on disk. It prepares a new server VM, publishes a new signed set, and players download only the missing chunks before switching over. If a Lua candidate is invalid, the previous generation stays in place.

Filesystem changes are noticed at each scan interval. Editing server.jsonc is not hot-reloaded, so restart the server after changing root or load.

Download settings

The resources.download block controls how players receive files:

json
"resources": {
  "enabled": true,
  "root": "../resources",
  "load": ["open77_*", "garage", "!open77_debug", "../shared/**"],
  "autoStart": true,
  "download": {
    "enabled": true,
    "listenUrl": "http://0.0.0.0:11779",
    "publicBaseUrl": "https://cdn.example.net/",
    "cacheDirectory": ".open77/resource-cache",
    "signingKeyFile": ".open77/resource-signing-key.json",
    "chunkSizeBytes": 1048576
  }
}

HTTPS is mandatory for a public URL. HTTP is limited to loopback.

Understanding Resource Dependencies

A resource that needs another declares it in its manifest. For example, the official quickhack resource tells dependants to add:

lua
dependency "open77_quickhack"

Dependencies are not added for you. Every dependency must also match resources.load. Otherwise starting the dependent resource fails and names the missing dependency. This keeps your configured set authoritative: an excluded resource can’t return through another manifest.

To share code between resources:

  • Use dependency plus require('@resource/module') over declared files on the client.
  • Use exports on both sides.
  • Don’t use FiveM-style includes like @other_resource/file.lua in a script list. OPEN//77 refuses them by name.

A library that declares files but no client script is delivered as a passive library: the client keeps it idle and running while dependants require its files.

How to Identify and Fix Resource Errors

First, run resources to see what the server discovered, and read the startup log. On the client side, the documented diagnostic commands are resource.list, resource.status <resource> and resource.distribution.

Symptom or message Likely cause Fix
Resource '<name>' was not found The name wasn’t in resources.load when the server started, or the folder is missing Add it to load and restart. refresh doesn’t re-read server.jsonc.
Start fails naming a missing dependency The dependency isn’t selected by load Add the dependency to resources.load.
“Resource contains no scripts or files.” (no_client_scripts on the client) The manifest has no script and no files. web_files alone don’t count Declare a script or files.
Client stuck on “Verifying resources” (resource_activation_failed) Builds up to 2.31.13+op77.82 refuse a delivered resource with no client or shared script Update the server, or add an empty client_script as the documented workaround.
manifest_export_missing:<name> A listed export has no global function of that name Define the function or remove it from the list.
invalid_manifest_export:<directive>:<name> The name isn’t a Lua identifier of at most 64 characters Rename the export.
cross_resource_include_refused:@other_resource/file.lua A FiveM-style cross-resource include Use dependency with require or exports.
Two resources rejected as ambiguous Two selected directories declare the same resource name Rename or remove one.
permission_denied:<permission> The resource uses an API without declaring the permission (for example database.access) Declare it in permissions { ... } and reload the resource.
Players don’t see a change you made An invalid Lua candidate keeps the previous generation Read the server log for the Lua error and fix it.
Server startup fails on a preload_mod The resource isn’t selected, requiredMods.enabled isn’t true, or a package path or size is wrong Fix the named directive and restart. Preloads need a server restart.
INF|my_resource|manifest_ignored_keys=fx_version,lua54 Not an error. FiveM-only keys were accepted and ignored Remove them if you like.

Best Practices for Managing Lua Resources

  • Use an exact load list in production. Adding a resource to the library then can’t silently add it to a live server.
  • Audit permissions. A server resource is code chosen by the operator, so only grant sensitive permissions to resources you’ve reviewed.
  • Remember SQL is shared. Resources with database.access use the same database and account. Back up the database before changing persistence behavior.
  • Keep third-party content out of version control. Never commit the signing private key or the .open77 cache, and keep the signing key file across a migration.
  • Don’t overwrite system/. Update individual platform resources deliberately.
  • Use !name or stop to disable temporarily. Either is clearer than deleting folders.
  • Check the list after changes. Run resources to confirm the final discovered set.

If you’d rather not manage files, ports and downloads yourself, OPEN//77 server hosting is an option. The resource system works the same way either way.

Frequently Asked Questions

Where do I put Lua resources on an OPEN//77 server?

In the folder set by resources.root, usually resources/. Category subfolders such as resources/rp/ are fine. Then add the resource’s name to resources.load in server.jsonc so the server selects it.

How do I start a resource after adding it?

Add its name to resources.load, then run refresh followed by ensure <name> in the server console. If the name wasn’t in resources.load when the server started, restart the server first, because refresh doesn’t re-read server.jsonc.

Do I need fxmanifest.lua for OPEN//77 resources?

No. OPEN//77 resources use a manifest named open77.lua. FiveM-only keys such as fx_version and lua54 are accepted and ignored, and cross-resource includes like @other_resource/file.lua are refused by name.

Can I update resources without restarting the server?

Yes, for resources already loaded. With autoStart on, the server notices valid changes and publishes a new set to players, and reload <resource> or Warden’s hot reload also works. Adding a brand-new name to an exact resources.load list needs a restart.

Why do I get “Resource was not found” when I run ensure?

Usually the name wasn’t in resources.load when the server started, so the resource is unknown. Add it to server.jsonc and restart the server. Also check that the folder exists under resources.root and contains an open77.lua.

Leave a Comment

Your email address will not be published. Required fields are marked *