The Lab
The Lab Telegram · RSG

Install The Lab Telegram on RSG

On RSG the telegram needs one SQL import, four item entries in rsg-core and their images. This guide goes through each, then checks the full postal flow with two characters.

Estimated time: 20 minRSG

Before you start

  • rsg-core and rsg-inventory
  • oxmysql
  • Database access to import a SQL file

Install steps

  1. Step 1: Download the resource from the Cfx.re Portal

    Sign in to the Cfx.re portal with the account you used at checkout, open your granted assets and download tlb-telegram. Extract the archive into your resources folder and keep the folder name as it is.

  2. Step 2: Import the SQL

    Import installation/tlb-telegram.sql once. It creates the telegram tables and seeds the default papers, fonts and stamps.

    mysql -u <user> -p <database> < tlb-telegram/installation/tlb-telegram.sql
  3. Step 3: Add the items to rsg-core

    Open installation/rsg-items.lua and copy its four entries (paper, quill, envelope, letter) into the items table of rsg-core/shared/items.lua. If your server already has one of them, keep yours only when it is set the same way: paper and letter need useable = true, letter also unique = true.

    paper = { name = 'paper', label = 'Paper', weight = 50, type = 'item', image = 'paper.png', unique = false, useable = true, shouldClose = true, description = 'A blank sheet of paper ready to be written on.' },
  4. Step 4: Copy the item images

    Copy the content of installation/item-images/ into rsg-inventory/html/images/.

  5. Step 5: Ensure after the RSG stack

    The framework is detected on start, so start it before the telegram.

    ensure oxmysql
    ensure rsg-core
    ensure rsg-inventory
    ensure tlb-telegram
  6. Step 6: Check the console

    On start the console prints the framework in use: framework: rsg. If it prints standalone, rsg-core was not running.

  7. Step 7: Test the postal flow

    Buy paper, a quill and an envelope at the stationery shop, write and seal a letter, send it at a post office to a second character's postal number, then collect it from that character's incoming telegrams. Before sending, add the recipient to the directory with their postal number, shown in their own panel.

Troubleshooting

Buying at the stationery shop shows an error

The items are missing from rsg-core/shared/items.lua, or the player has no room. Check the names match Config.Items and Config.Shop.items.

The console shows `framework: standalone`

rsg-core was not started, or its folder has another name. Fix the start order, then restart tlb-telegram.

Items show without an image

The images were not copied into rsg-inventory/html/images/, or their file names do not match the image field.

FAQ

Can I limit a stamp to the sheriff?

Yes: jobs = { 'sheriff' } on that entry in Config.Stamps, matched against the RSG job.name.

Can I translate it?

Set Config.Locale to 'fr', or copy the en table in Config.Locales to add your own language.