The Lab
The Lab Telegram · Standalone

Install The Lab Telegram in standalone mode

Without a framework the telegram has no items to register and no economy to set up. You import one SQL file, start it after oxmysql, and players write and read with chat commands.

Estimated time: 10 minStandalone

Before you start

  • oxmysql connected to a database
  • A chat resource, used for the notifications and commands in this mode

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; tlb_telegram_items, which holds each player's stationery and letters, is also created on start if it is missing.

    mysql -u <user> -p <database> < tlb-telegram/installation/tlb-telegram.sql
  3. Step 3: Ensure it

    Only the database has to start first.

    ensure oxmysql
    ensure tlb-telegram
  4. Step 4: Test with the chat commands

    Take paper, a quill and an envelope at the stationery shop, type /writetelegram, seal and send the letter at a post office to a second player, then have them collect it, type /letters and read it with /readletter and the number shown. Before sending, add the recipient to the directory with their postal number, shown in their own panel.

Troubleshooting

No message appears in the chat

Notifications and the letter list go through chat:addMessage, so a chat resource must be running.

The console shows a framework instead of standalone

A supported framework is running. Set Config.Framework = 'standalone' to force this mode.

FAQ

Can I rename the commands?

Yes, in Config.Standalone: writeCommand, lettersCommand and readCommand.

Does anything cost money?

No. Without a framework there is no economy, so postage and the stationery shop are free.