Frontier Wire — Configuration
Frontier Wire is configured in two places:
- The admin desk in game (
/frontier_mailbox): everything an administrator tunes while playing. Saved in the database, applied at once, no restart. config.lua: only what needs a restart (framework, item names, catalogs, map blips, game assets, capacity limits). It is not escrowed.
Admin desk tabs
| Tab | Contents |
|---|---|
| Stations | Create, edit, open or close post offices; clerk, radius, postage, delivery time, access |
| Message archive | Every telegram on the server, searchable, read only |
| Players | Every character and their mailbox; assign an address; courier standing and trust |
| Service | Prices, word limit, the carrier bird, the address prefix, defaults players may override, the mail reminder |
| Wax seals | The seals, their colour and emblem, and "Who may use it" (jobs and ranks) |
| Parcels & cash | Cash enclosures, parcel fees and limits, the item rule |
| Courier work | Pay, cooldowns, limits, time rules, trust and the level table |
| Discord logs | Webhook link and which kinds of events are logged |
| Server setup | The values of config.lua, read only |
Station fields
| Field | Meaning |
|---|---|
| Name, town | Shown to players and on the map |
| Clerk model | From Config.ClerkModels |
| Position, heading | Set by placing the clerk |
| Radius | 0.5 to 10 m; how close a player must be |
| Postage mode and price | free, flat (per telegram) or word (per word) |
| Delivery time and mode | Seconds; fixed, or distance = seconds per kilometre |
| Access | Everyone, listed jobs, listed character ids, or jobs or characters |
| Animations, greetings, farewells, voice cooldown | Clerk behaviour |
| Open / closed | A closed office cannot be used |
Clerks are local, non-networked peds. They appear when a player comes within 60 m and are removed beyond 80 m (Config.Streaming).
In-game settings and their defaults
| Setting | Default | Meaning |
|---|---|---|
paperPrice / birdPrice | 0.25 / 5 | Price of a blank telegram / a carrier bird |
maxWords | 250 | Longest message a player may write |
allowBird | on | Carrier bird service |
birdCommand | bird | The command that calls a waiting bird |
birdFlightMinutes | 2 | Minutes a bird telegram is in the air (0 = at once) |
birdCallSeconds | 40 | Time to call a landed bird |
birdTakeSeconds | 120 | Time to take the telegram from the bird |
addressPrefix | FW | Prefix of new mailbox addresses (letters only) |
defaultTheme, defaultFont | parchment, handwriting | Defaults for paper colour and writing style |
userTheme, userFont, userSeal, userVoice | on | Whether players may choose their own |
clerkVoices | on | Clerks speak |
reminderEnabled, reminderDistance, reminderCooldown | on, 25 m, 600 s | Unread-mail reminder near a post office |
moneyEnabled, moneyByBird, moneyByStation, moneyMax | on, on, on, 500 | Cash enclosures |
parcelEnabled, parcelByBird, parcelByStation | on | Parcels |
parcelStationFee/Kinds/Count/Weight | 1 / 5 / 20 / 10 | Post office parcel fee and limits |
parcelBirdFee/Kinds/Count/Weight | 1 / 2 / 5 / 1.5 | Bird parcel fee and limits |
parcelFilter, parcelList, parcelCategories | all | all, blacklist, whitelist or categories |
parcelWeightUnit | kg | Label for weights |
courierEnabled | on | Courier work |
courierCooldown, courierRetry | 10, 5 min | Rest between jobs; wait before asking again |
courierDailyLimit, courierChance | 10, 60 % | Jobs per 24 hours (0 = no limit); chance of a delivery run |
courierBasePay, courierPerKm, courierPerLetter | 2, 1.5, 0.25 | Pay |
courierTimeBase, courierTimePerKm, courierLowWarning | 180 s, 100 s, 30 s | Time limit of a job |
courierTrustDelivery, courierTrustPerLetter, courierTrustFailed, courierFailRest | 10, 2, 15, 20 min | Trust earned and lost |
courierMinCarry, courierMaxSpeed, courierMinSeconds, courierMinDistance, courierBagSize | 180 s, 22 m/s, 60 s, 500 m, 25 | Anti-abuse rules |
courierLevels | 5 levels | Rows of {trust, label, jobsInRow, payBonus}, rising from trust 0 |
seals | 7 seals | Rows of {key, label, color, emblem, jobs}; at least one for everyone |
Wax seals
Default seals: Crimson, Black, Emerald, Navy and Gold wax (for everyone, emblem of the player's choice), and two seals of office:
| Seal | Job | Emblem |
|---|---|---|
| Sheriff's Office | Police | Star |
| Doctor's Office | doctor | Cross |
These are VORP's default job names and are case-sensitive. Change them on the Wax seals tab if your server names them differently.
Where the job list comes from
"Who may use it" lists the framework's jobs and ranks:
- With a current
vorp_corethey come from its job registry (Core.GetRegisteredJobs()), which VORP scripts fill themselves. - With an older
vorp_corethe adapter reads thevorp_police,vorp_medicandvorp_paycheckconfigs. - In both cases every job, rank and job title that characters hold is added.
unemployedis left out. - Refresh asks again (at most every 10 seconds). A job with no known ranks offers only "All ranks".
- Jobs the framework cannot list can be named in
Config.SealJobs.
config.lua
| Key | Default | Meaning |
|---|---|---|
Framework, Inventory | 'auto' | 'auto' or the adapter name ('vorp') |
Notify | 'vorp' | Notification adapter |
Locale | 'en' | Language file in locale/ |
AdminAce | 'frontier_mailbox.admin' | ACE permission for the admin desk |
AdminCommand | 'frontier_mailbox' | Admin desk command |
MailCommand | 'mymail' | Player command that shows their own mailbox address and unread count; '' turns it off |
Items | four names | Inventory item names |
ClerkModels | four models | {label, model, voice, speech} choices for clerks |
StationDefaults | radius 3.0, voiceCooldown 5 | Values of a new station |
Themes | parchment, ivory, rose | Paper palettes {key, label, colors} |
Emblems | empty | Your own seal emblems |
SealJobs | empty | Extra job names for the seal editor |
Blips | station, bird, route | Map blips: enabled, style, sprite, scale, color, range, name |
Streaming | spawn 60, despawn 80, limit 40 | Clerk streaming distances and cap per client |
Limits | see below | Request and delivery limits |
Controls | E hold 1000 ms | Prompt and placement keys |
Scenes | models, speech, bird | Paper and bird model, clerk scenarios and speech lines, shoulder bird values |
Config = {
Framework = 'auto', -- 'auto' (detects it) or 'vorp'
Inventory = 'auto', -- 'auto' (detects it) or 'vorp'
Notify = 'vorp',
Locale = 'en',
AdminAce = 'frontier_mailbox.admin',
AdminCommand = 'frontier_mailbox',
MailCommand = 'mymail', -- '' turns the player command off
Items = {
paper = 'frontier_mailbox_paper', bird = 'frontier_mailbox_bird',
sealed = 'frontier_mailbox_sealed', received = 'frontier_mailbox_received'
},
StationDefaults = {radius = 3.0, voiceCooldown = 5},
Streaming = {spawn = 60.0, despawn = 80.0, limit = 40},
Limits = {concurrent = 64, perPlayer = 2, pages = 12, requestsPerSecond = 500, burst = 750,
databaseRequestsPerSecond = 100, databaseBurst = 150, deliveryBatch = 250},
-- ClerkModels, Themes, Emblems, SealJobs, Blips, Controls and Scenes: see config.lua
}The shoulder bird values in Scenes (bone CP_L_Shoulder, offset -0.015 / 0.030 / 0.090, rotation 0 / 0 / -2, birdStill = true) are tuned for male and female characters. Leave them unless you change the bird model.
Your own emblems, paper colours and clerks
Wax seal emblems. Eleven are built in: telegraph, quill, dove, post office, envelope, star, cross, scales, coin, ledger, lock. To add one:
Put a PNG, SVG or WebP in
web/emblems/(file name: letters, digits,_,-).Add a line to
Emblemsinconfig.lua:luaEmblems = { {key = 'badge', label = 'Marshal badge', file = 'badge.png'}, },Restart the resource.
The key must start with a letter and never change later, because seals remember it. Only the shape of the picture is used; it is pressed into the wax in one colour. Use a transparent background, a simple bold shape, about 128 × 128 pixels.
Paper colours. Add a row to Config.Themes:
{key = 'night', label = 'Night blue', colors = {paper = '#...', ink = '#...'}},Colours you leave out come from parchment. Keys: paper, paperLight, paperDark, ink, muted, line, accent, green, red.
Clerks. Add a row to Config.ClerkModels: {label, model, voice, speech}. voice is an RDR2 speech bank; speech is a profile from Config.Scenes.speech.profiles. A model without a voice uses the fallback voice for its sex.
Languages
Every text players and administrators see is in one file per language in locale/, which is not escrowed. English (en.lua) is the reference.
- Copy
locale/en.luaand name the copy after the language, for examplelocale/nl.lua. - Translate the text on the right of each
=. Never change the key on the left. - Set
Locale = 'nl'inconfig.luaand restart.
Rules for translators:
%sis filled in with a name or a number, in order. Keep every%s, in the same order.- A text containing
'is written in "double quotes". Keep\n(a line break). - One text per line, ending with a comma.
- A key missing from the file is shown in English, so a half-finished translation still works.
- If the file has a mistake, the server console says so and English is shown instead.
Texts an administrator types in game (station names, seal names, courier level names) are stored as typed and are not translated.
Version check
At start the server compares its version with the latest Frontier Forge release. When a newer one exists, the console prints both versions and asks you to update from the Cfx portal. The admin desk shows the installed version at the bottom left. Without internet access the check stays silent.
