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.
Before you start
redem_roleplayandredemrp_inventory2.xoxmysql- Database access to import a SQL file
Install steps
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.Step 2: Import the SQL
Import
installation/tlb-telegram.sqlonce for the telegram tables, papers, fonts and stamps.mysql -u <user> -p <database> < tlb-telegram/installation/tlb-telegram.sqlStep 3: Add the items to redemrp_inventory
Copy the four entries of
installation/redemrp-items.luaintoConfig.Itemsofredemrp_inventory/config.lua. Keeptype = "item_standard", sinceitem_letteris 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", },Step 4: Copy the item images
Copy the content of
installation/item-images/intoredemrp_inventory/html/items/.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-telegramStep 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.
Related guides
- Install oxmysql on RedMSet up oxmysql for RedM: download the release build, set mysql_connection_string, ensure it first and fix the usual connection errors.
- RedM server.cfg ensure orderWhy start order matters in a RedM server.cfg and the order that works: database, libraries, framework core, inventory, then your scripts.
- How to install a RedM scriptInstall any RedM resource: get the files, check fxmanifest dependencies, add SQL and items, place the ensure line and test from the console.