Telegram Script Overview (VORP Framework)
This script allows players in RedM to send and receive telegrams using the VORP Core Framework. It integrates with the game's UI, enabling players to create, view, delete, and manage telegrams and contacts. It simulates a post office system, providing players a way to communicate by sending messages to each other. Additionally, it includes multi-language support.
Player Postbox System: Each player is assigned a unique postbox code when they join the server for the first time. This postbox is stored in the database and used for receiving telegrams.
Creating a Telegram: Players interact with an NPC or press a designated key (default is "G") to open the telegram UI. They enter the recipient's postbox code, a subject, and a message, then send the telegram for a small in-game fee.
Receiving Telegrams: Players view received telegrams in their personal inbox. Once opened, telegrams are marked as read.
Managing Contacts: Players can save contacts with custom names and postbox codes for easier communication.
NPC Interaction: Players can interact with NPCs (e.g., post office clerks) to access the telegram system.
Ensure the VORP Core Framework is installed and running.
Place the script in your server's resources directory.
Adjust the config.lua file to match your post office locations and NPCs.
Add the script to your server’s configuration file:
ensure pogue_telegram
Start the resource using your server’s configuration file.
---UPDATES---
Pogue_Telegram v1.2.0 Update
With the new update, players can now check if they have unread telegrams by using the /command. For example, you can type /checkmail to find out if you have any unread telegrams.
Pogue_Telegram v1.3.0 Update
**
New Features: **
Config.postoffice = {
{ name = "Valentine", blip = 1475382911, coords = vector3(-178.90, 626.71, 114.09), radius = 1.0 },
{ name = "Blackwater", blip = false, coords = vector3(-875.1723, -1328.7574, 43.9580), radius = 1.0 }, -- **Disable blip**
{ name = "Saint Denis", blip = 1475382911, coords = vector3(2736.3657, -1402.7230, 46.1831), radius = 1.0 },
{ name = "Rhodes", blip = false, coords = vector3(1225.5872, -1294.0364, 76.9091), radius = 1.0 }, -- **Disable blip**
{ name = "Strawberry", blip = 1475382911, coords = vector3(-1767.1658, -381.6003, 157.7319), radius = 1.0 }
}
Pogue_Telegram v1.4.0 Update
New Features:
Pogue_Telegram v1.5.0 Update
Unread Mail Icon Toggle
A new configuration option has been introduced:
Config.checkmailicon = true
When set to true, an unread.png icon will appear in the top-right corner of the screen to notify players of unread telegrams.
You can change the position and appearance of the icon by editing this line in your ui.html:
<img id="unreadIcon" src="unread.png" style="display:none; position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; z-index: 10000;" />
Adjust the position, size, or styling as needed.
Replace “unread.png” with any image you prefer for a custom look.
A new major update is now available for Pogue Telegram.
This update introduces new roleplay-focused telegram features, including anonymous telegram support, improved message handling, and better date display options for period-based servers.
Players can now send telegrams anonymously. When an anonymous telegram is received, the sender information will remain hidden from the recipient. This allows servers to create more immersive roleplay situations such as secret warnings, anonymous tips, threats, hidden messages, or confidential communication.
Anonymous telegrams can no longer be replied to. This prevents the sender’s telegram number or identity from being exposed accidentally and keeps anonymous communication fully protected.
A new configuration option has been added for telegram date display. Servers can now choose to show telegram dates according to their own roleplay era. For example, if your server is set in 1895, telegram dates can be displayed as if they belong to that year. If this option is disabled, the system will continue using the normal real date display.
These changes were made to make telegram communication feel more natural, more useful, and more suitable for western roleplay servers. Anonymous telegrams allow players to create deeper stories, secret conflicts, investigations, threats, informant messages, and more realistic communication between characters.
The reply option has been removed from anonymous telegrams to make sure the sender’s identity stays hidden at all times.
Telegram sending, reading, and message handling have been improved for a smoother experience.
A few small issues have also been fixed in this update to improve overall stability and usability.