RedM telegram script for RSG
On RSG, The Lab Telegram reads the character from rsg-core and keeps the paper, quills, envelopes and letters in rsg-inventory. Quill wear and the content of each letter travel in the item info, so a letter can be handed to another player and still be read.
Features
Seven post offices preset, each with an NPC and blip
Editor with title, markdown, fonts, papers and live preview
Quill durability and letters stored in the RSG item info
Postage paid in cash through rsg-core
Stamps limited to RSG job names
Notifications through rsg-core
Compatibility
Dependencies
rsg-core, rsg-inventory and oxmysql. The framework is detected on start, or forced with Config.Framework = 'rsg' in shared/config.lua.
Items
Copy the four entries of installation/rsg-items.lua (paper, quill, envelope, letter) into rsg-core/shared/items.lua, and the images of installation/item-images/ into rsg-inventory/html/images/. Paper and letters are usable items.
Money and characters
Postage and stationery are paid in cash. Characters are told apart by their citizenid, so each character of a player has its own postal number and address book.
Jobs and stamps
The jobs list of a stamp in Config.Stamps is compared with the RSG job.name, so { 'police', 'sheriff' } keeps that stamp for law enforcement.
Open adapter
The RSG adapter is an open file, bridge/server/frameworks/rsg.lua, outside the escrow, so you can adjust it to your rsg-inventory version.
By framework
Install guide
Install The Lab Telegram on RSG
Install The Lab Telegram on RSG: import the SQL, add four items to rsg-core, copy the images and ensure the script after rsg-inventory.
FAQ
My server already has a paper item. Do I add another?
No, if yours is usable and no other script handles its use: skip that entry. Otherwise rename the item in Config.Items and in Config.Shop.items of shared/config.lua.
Can a letter be given to another player?
Yes. The letter is an item with its content in info, so whoever holds it can use it to read it.
Is there a target system dependency?
No. Post office NPCs use the native RedM prompt.