Configuration
Settings are in shared/config.lua. Restart the resource after changing them. shared/config.lua and shared/adapter.lua are sent to players, so never put secrets in them.
Camp placement
Option | Meaning |
|---|---|
| Distance at which a camp's props spawn for a player |
| How close you must be to your camp to place items. Keep it lower than |
| Minimum distance between two players' camps |
|
|
| Towns where camps are not allowed. Each entry has |
Blips (blipData)
blipName, sharedCampName, blipSprite, blipStyle, sharedBlipStyle, areaRadius, areaModifier, areaColor, sharedAreaColor.
Cooking (Cooking)
Camp cooking items show a prompt that opens your own crafting script.
Option | Meaning |
|---|---|
| Text of the prompt |
|
|
| Your event, for example |
| Optional arguments passed first |
The event always receives a last argument: { model, coords }.
Degradation and maintenance
Option | Meaning |
|---|---|
| Turn degradation on or off |
| Condition scale (default 100) |
| Condition lost per hour (0.5 is about 8 days from 100 to 0) |
| Levels for |
| Features locked at each level: |
| Destroy a camp at 0 condition after the grace period |
| Messages shown when the condition passes a threshold |
| Cost of a full maintenance |
| Cheaper maintenance: |
Placeables (Placeables)
Every prop or NPC a player can place. The key is the item name and must exist as an item.
Field | Meaning |
|---|---|
| Display name |
| Clears vegetation around the prop |
| The item that creates a camp |
| On the campfire. Each stage has |
| Camp stage needed to use the item |
| Only one per camp |
| A storage prop |
| A cooking prop |
| The mission book |
| An NPC. |
| NPC that trades through gm_ecosystem |
To add a prop: add it to Placeables, add the item to your inventory, and optionally add it to the store list.
Missions (missions)
{ title = "My Mission", event = "my_script:client:start", requiredStage = 8, hasCooldown = true, cooldownMinutes = 30 },
Field | Meaning |
|---|---|
| Name in the menu |
| Client event triggered when started |
| Camp stage needed |
| Built-in cooldown for the camp. Your mission must trigger |
| Instead of |
Cooldowns are kept in memory and are cleared by a server restart.
Integration (shared/adapter.lua)
Everything that talks to other systems lives here: notifications, identifiers, usable items, giving and removing items, money, storage, input dialog, progress bar, gizmo, item labels and the doctor locations. It is written for jo_libs. Change a function here to integrate another system.
Discord webhooks (server/webhooks.lua)
This file is server only and never sent to players.
Option | Meaning |
|---|---|
| Webhook used by every event without its own |
| One webhook per event: Camp Created, Camp Destroyed, Camp Share Accepted, Camp Share Removed, Camp Upgraded, Camp Maintained, Item Purchased |
| Look of the message |
| Embed colors |
An empty "" turns a log off. Logs are always printed to the server console too.
Permissions (permissionData)
Do not change. It defines the sharing permissions and matches the database columns.