The Lab

The Lab Telegram

A premium telegram & postal system for RedM (RDR3).

Works with VORP, RSG, RedEM:RP and standalone — the framework is detected automatically.

Immerse your players in a fully functional western postal service. Write letters on real paper, seal them in envelopes, deliver them across the map through post offices, and let your community stay in touch the old-fashioned way — with a polished, roleplay-first interface.

Highlights

  • Works on every major framework — VORP, RSG, RedEM:RP or no framework at all. Auto-detected on start, or forced in shared/config.lua.
  • Living post offices — NPC postmen are placed in every configured town, with map blips and native interaction prompts (press E to open the panel).
  • In-game telegram editor — write directly on the paper: title, markdown content, font, paper background and signature, with a live preview.
  • Three signature styles — typed (choose a font), handwritten (draw with your mouse), and official stamps — with a per-job whitelist so only the right people can use the right stamp.
  • Full postal flow — write → seal → send at the post office → recipient collects from incoming telegrams. Costs, recipients and balances are all handled.
  • Recipient directory — add, edit and delete contacts by postal number, with custom names.
  • Stationery shop — a shopkeeper sells paper, quills and envelopes.
  • Quill durability — every letter written wears down the quill (metadata.durability); it breaks when it reaches 0. Fully configurable.
  • Notification bubble — a discreet, movable bubble that appears only when you have mail, toggleable in settings.
  • Fully translatable — every text and every button is driven by shared/config.lua, shipping with English and French out of the box.
  • Configurable fonts — add your own fonts straight from shared/config.lua, no code required.
  • Screenshot-quality UI — a minimalist western-themed interface with paper textures, typewriter fonts and subtle 3D card effects.
  • Data-safe — everything is stored in MySQL and visual properties are snapshotted, so old telegrams never break when you update the catalog.

Requirements

  • RedM (Red Dead Redemption 2)
  • oxmysql — required
  • One of these frameworks (optional):
FrameworkResources
VORPvorp_core + vorp_inventory
RSGrsg-core + rsg-inventory
RedEM:RPredem_roleplay + redemrp_inventory 2.x
Standalonenothing else

Installation

  1. Place the tlb-telegram folder into your resources directory.
  2. Import installation/tlb-telegram.sql into your database (creates all tables and seeds the default papers, fonts and stamps).
  3. Add the four items (paper, quill, envelope, letter) to your framework — everything is in installation/:
  • VORP — run installation/vorp-items.sql, then restart vorp_inventory.
  • RSG — copy the entries of installation/rsg-items.lua into the items table of rsg-core/shared/items.lua, and keep unique = true on quill and letter.
  • RedEM:RP — copy the entries of installation/redemrp-items.lua into Config.Items of redemrp_inventory/config.lua.
  • Standalone — nothing to add.
  1. Copy the images of installation/item-images/ into your inventory's image folder: vorp_inventory/html/img/items/ (VORP), rsg-inventory/html/images/ (RSG) or redemrp_inventory/html/items/ (RedEM:RP).
  2. Add to server.cfg, after your framework:
   ensure oxmysql
   # your framework (vorp_core + vorp_inventory, rsg-core + rsg-inventory, redem_roleplay + redemrp_inventory)
   ensure tlb-telegram
   

On start the console prints the framework in use, for example framework: rsg.

The web interface ships pre-built in the app/ folder. No build step is required to use the script — just drop the resource in and start it.

Frameworks

Config.Framework = 'auto' -- 'auto' | 'vorp' | 'rsg' | 'redemrp' | 'standalone'

auto uses the first framework found running (VORP, then RSG, then RedEM:RP), otherwise standalone. Forced or not, a framework that is still starting is waited for, 15 seconds at most. A forced framework is never replaced by another one.

VORPRSGRedEM:RPStandalone
Moneycashcashmoneynone — everything is free
Itemsvorp_inventoryrsg-inventory (metadata in info)redemrp_inventorykept by the resource
Stamp jobscharacter.jobjob.namejobnone
Characterchar idcitizenididentifier + char idplayer license
NotificationsVORPrsg-coreredem_roleplaychat

Standalone has no economy and no inventory: sending, shop items and stationery are free, and each player's paper, quills, envelopes and letters are stored by the resource (table tlb_telegram_items, created automatically). Players use chat commands instead of an inventory (names in Config.Standalone):

  • /writetelegram — write a telegram (still needs a paper, a quill and an envelope from the stationery shop).
  • /letters — list the letters you carry.
  • /readletter <number> — read one of them.

Your own framework: the adapters live in bridge/server/frameworks/ and are open files (not escrowed). Copy one, adapt the few functions it contains (character, money, items, notifications) and set Config.Framework to its name.

Configuration

Everything is tuned from a single file: shared/config.lua. It is excluded from escrow on purpose, so you can change it freely without touching any protected code.

Localization

The whole interface (Lua notifications, prompts and the web UI) is translated from config.lua.

Config.Locale = 'en' -- 'en' or 'fr' (English and French ship by default)

Config.Locales = {
    en = { ['common.cancel'] = "cancel", ... },
    fr = { ['common.cancel'] = "annuler", ... },
}
  • Switch language: set Config.Locale to 'fr' (or 'en').
  • Edit a text: change the value of the matching key in Config.Locales.
  • Add a language: copy the entire en table, translate every value, then set Config.Locale to the new key (for example 'es').
  • Placeholders: some strings contain {0}, {1}, … — leave them where they are, they are replaced at runtime (for example "buy — ${0}").
  • Keys that are missing in a locale automatically fall back to English.

Fonts

Fonts available in the editor are declared in Config.Fonts:

Config.Fonts = {
    { id = 'chinese-rocks', label = L('font.chinese-rocks'), file_name = 'Chinese Rocks' },
    { id = 'cormorant',     label = L('font.cormorant'),     file_name = 'Cormorant Garamond' },
    -- { id = 'myfont', label = 'My Font', file_name = 'My Font', file = 'my-font.otf' },
}
  • id — unique id stored on each telegram (short, no spaces).
  • label — name shown in the editor. Use a plain string, or L('font.myfont') to translate it via Config.Locales.
  • file_name — the CSS font-family name.
  • file — optional, only for local fonts (.woff2, .ttf, .otf).

Adding a local font (no build required):

  1. Drop the font file into app/assets/fonts/ (create the folder if it does not exist).
  2. Add a line to Config.Fonts with file = 'your-font.otf'.
  3. Restart the resource.

The web UI registers the @font-face automatically from config.lua.

Papers & stamps

Papers and stamps work like fonts. Drop the image in app/assets/papers/ (or app/assets/stamps/), then add an entry to Config.Papers / Config.Stamps. Stamps support a jobs whitelist so only specific jobs can use them — the job name of your framework (see the table above).

Other options

  • Framework — auto detection or forced framework (Config.Framework), standalone commands (Config.Standalone).
  • Post office zones — label, coordinates, NPC model and blip (Config.Zones).
  • Items — item names used by the resource (Config.Items). Rename an item there and the stationery shop follows; see installation/README.md for the item entries to rename with it.
  • Shop — items, prices and the shopkeeper's location (Config.Shop).
  • Quill durability — durability per use and maximum durability (Config.Quill).
  • Economy — telegram sending price (Config.Price) and editor limits (Config.Limits).
  • Fallback name — shown when a player is offline (Config.NameFallback).
  • Dev command — opens the editor directly while Config.Debug is enabled (Config.Command).

Full documentation of every option is included as comments in config.lua.

Updating from 1.1.0

  • Replace the tlb-telegram folder and keep your shared/config.lua: it works as it is. No SQL to run.
  • Config.Target was never used and is gone from the default config: you can delete it from yours.
  • RSG: set unique = true on quill in rsg-core/shared/items.lua.

Updating from 1.0.x

  • Replace the tlb-telegram folder, then copy your settings back into the new shared/config.lua (it has two new options: Config.Framework and Config.Standalone).
  • VORP: no SQL to run, your telegrams, contacts and items are kept.

What you can edit

shared/config.lua (all your settings and translations) and the framework adapters in bridge/server/frameworks/ are excluded from escrow. Every other Lua file is protected. You can still add new assets (paper/stamp images, font files) as described above; they are plain files, not code.

What's included

  • Full Lua source (server + client) — protected by escrow
  • Open framework adapters (VORP, RSG, RedEM:RP, standalone)
  • Pre-built web UI (app/)
  • Database schema & seed data
  • Item definitions for VORP, RSG and RedEM:RP, with item images
  • Configuration file with comments (shared/config.lua)
  • English & French translations included
  • Installation & setup guide

Support

  • Dedicated support for setup and configuration.
  • Free updates included.