The Lab
The Lab Telegram · RedEM:RP

Install The Lab Telegram on RedEM:RP

On RedEM:RP the telegram needs one SQL import and four items added to the redemrp_inventory config. The one trap is the item type, which must stay item_standard.

Estimated time: 20 minRedEM:RP

Before you start

  • redem_roleplay and redemrp_inventory 2.x
  • 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 for the telegram tables, papers, fonts and stamps.

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

    Copy the four entries of installation/redemrp-items.lua into Config.Items of redemrp_inventory/config.lua. Keep type = "item_standard", since item_letter is the pigeon carrier's type.

    ["letter"] = {
    	label = "Letter",
    	description = "A written letter containing a message.",
    	weight = 0.05,
    	canBeDropped = true,
    	canBeUsed = true,
    	limit = 10,
    	imgsrc = "items/letter.png",
    	type = "item_standard",
    },
  4. Step 4: Copy the item images

    Copy the content of installation/item-images/ into redemrp_inventory/html/items/.

  5. Step 5: Ensure after the RedEM:RP stack

    Start the framework and its inventory first so the telegram detects them.

    ensure oxmysql
    ensure redem_roleplay
    ensure redemrp_inventory
    ensure tlb-telegram
  6. Step 6: Test on a staging server

    Check that the console prints framework: redemrp, then buy stationery, write a letter, send it to a second character and read it from their inventory. Before sending, add the recipient to the directory with their postal number, shown in their own panel.

Troubleshooting

Using the paper does not open the editor

It takes a paper, a quill and an envelope, and canBeUsed must be true on paper and letter in the redemrp_inventory config.

The console shows `framework: standalone`

redem_roleplay was not started. Move ensure tlb-telegram below it, then restart the resource.

FAQ

Does it work with redemrp_inventory 1.x?

The adapter is written for 2.x. On another version, adapt the open file bridge/server/frameworks/redemrp.lua.

Can I rename the items?

Yes. Change the names in Config.Items and in Config.Shop.items of shared/config.lua, and use the same names in redemrp_inventory and for the image files.