📬 Pogue Telegram Script For RedM
Welcome to the Telegram Script, a roleplay-enhancing communication system for RedM servers!
💬 Support
📜 Overview
The Telegram Script brings a realistic messaging system to your RedM server. Players can manage telegrams, create contacts, and interact with NPCs to simulate a functional post office. With built-in multi-language support, this script is adaptable to any server environment.
✨ Key Features
📩 Create and Send Telegrams: Compose telegrams with a recipient's postbox code, subject, and message.
📥 Inbox System: Players can receive telegrams in their personal inbox.
🏤 Postbox Assignment: Each player is automatically assigned a unique postbox code.
🗂️ Contacts Management: Save, view, and delete contacts for easier communication.
🌐 Multi-Language Support: Dynamic translations for multiple languages configured through the
config.lua
.🤝 NPC Integration: Players interact with NPCs at post offices to send and receive telegrams.
💰 Payment System: Sending telegrams costs in-game currency for resource management.
🛠️ How the Script Works
1. Player Postbox System
Each player is assigned a unique postbox code when they first join the server (e.g., A12).
If no postbox exists for a player, one is automatically generated and linked to their character.
2. Creating a Telegram
Players can open the telegram UI by interacting with an NPC or pressing a designated key (default: G).
They fill out the recipient’s postbox code, subject, and message.
After sending the telegram, a small in-game fee is deducted from the player’s money.
3. Receiving a Telegram
Telegrams sent to a player appear in their inbox.
Players can open the telegram UI, view their inbox, and read messages. Once opened, telegrams are marked as read.
4. Managing Contacts
Save postbox codes under custom contact names for easier communication.
Contacts can be viewed or deleted through the contacts UI.
5. NPC Interaction
NPCs stationed at post offices manage the telegram system.
These NPCs are invincible and static to ensure smooth operation.
6. Multilingual Support
The script dynamically supports multiple languages defined in the
Config.Languages
section.All UI elements and notifications adapt to the player’s preferred language.
🔧 Installation Instructions
1. Add the Script to Your Server
Download the resource folder.
Place the folder in your RedM resources directory.
Add the script to your
server.cfg
file:ensure pogue_telegram
2. Set Up the Database
Run the provided
pogue_telegram.sql
file to create the necessary tables for storing postboxes, messages, and contact data.
3. Configure the Script
Open the
config.lua
file and adjust the following:Post Office Locations: Define NPC locations for post offices.
Telegram Costs: Set the in-game currency fee for sending telegrams.
Languages: Configure available languages for players.
🛠️ Requirements
oxmysql: Required for database integration.
VORP Core Framework: Ensure
vorp_core and vorp_inventory
is installed and functional.
🎮 Usage Overview
1. Sending Telegrams
Interact with an NPC or press the designated key to open the telegram UI.
Fill in the recipient’s postbox code, subject, and message.
Press Send to deliver the telegram (deducting the fee from your in-game currency).
2. Receiving Telegrams
Open your inbox through the UI to view received telegrams.
Click on a message to read it. Once opened, it’s marked as read.
3. Managing Contacts
Save contacts by entering a name and postbox code.
Access the contacts UI to view or delete saved contacts.
📋 Special Considerations
Roleplay Enhancement: This system simulates a realistic post office environment, enhancing communication within roleplay scenarios.
Resource Management: The payment system adds an economic layer to telegram usage.
Customization: Postbox codes, payment amounts, and languages can all be customized in the
config.lua
file.
For support or additional resources, join our Discord or explore more scripts on Tebex.
Enjoy the Telegram Script and bring immersive communication to your server! 💌
Last updated