The Lab
The Lab Telegram · VORP

Install The Lab Telegram on VORP

The Lab Telegram needs two SQL imports and four item images before players see it on VORP. This guide walks through each, then checks the full postal flow.

Estimated time: 20 minVORP

Before you start

  • vorp_core and vorp_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: you get a single tlb-telegram folder. Keep the folder name as it is.

  2. Step 2: Import the SQL

    Import installation/tlb-telegram.sql once for the telegram tables, papers, fonts and stamps, then installation/vorp-items.sql, which inserts the paper, quill, envelope and letter items. Restart vorp_inventory afterwards.

    mysql -u <user> -p <database> < tlb-telegram/installation/tlb-telegram.sql
    mysql -u <user> -p <database> < tlb-telegram/installation/vorp-items.sql
  3. Step 3: Copy the item images

    Copy installation/item-images/ (paper, quill, envelope, letter) into vorp_inventory/html/img/items/.

  4. Step 4: Ensure after the VORP stack

    Same order as the dependencies: database, core, inventory, then the telegram.

    ensure oxmysql
    ensure vorp_core
    ensure vorp_inventory
    ensure tlb-telegram
  5. Step 5: Check the console

    On start the console prints the framework in use: framework: vorp. If it prints standalone, vorp_core was not running: check the start order and restart tlb-telegram.

  6. Step 6: Adjust offices and prices

    Review Config.Zones (seven towns preset), Config.Shop (item prices), Config.Price.send (0.25 by default) and Config.Quill (10 durability per letter, 100 max).

    Config.Price = {
    	send = 0.25,
    }
    
    Config.Quill = {
    	durabilityPerUse = 10,
    	maxDurability = 100,
    }
  7. Step 7: Test the postal flow

    Buy paper, a quill and an envelope from the stationery shop, write and seal a letter, send it at a post office to a second character, 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

The import stops with a "table doesn't exist" error

On version 1.0.0, run the import a second time or update to 1.0.1, which fixes the order of the statements in the SQL file.

Players can write without paper

Config.Debug is true in shared/config.lua. Set it back to false.

A new font does not show

The file must be in app/assets/fonts/ and its name must match file in Config.Fonts. Restart the resource.

FAQ

Can I limit a stamp to the sheriff?

Yes: jobs = { 'sheriff' } on that entry in Config.Stamps.

Can I translate it?

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