Pause Menu
Announces
Configure and manage the announcement system in Taintless Pause Menu.
Announces Overview
Announcements are used to communicate important messages to players, such as server updates, events, or general announcements.
Announces.json
Customize.lua
Announcement Structure
Each announcement in Announces.json includes:
[
{
"text": "Your announcement content here...",
"date": "05.09.2024",
"header": "Welcome to the server!",
"photo": ""
}
]Prop
Type
Adding New Announces
Use the in-game command to add announcements instantly:
/addAnnounce Header TextExample:
/addAnnounce "Weekend Event" "Join us for an exciting new event happening this weekend!"Announcements added via command appear instantly — no restart needed.
Open Announces.json
Locate and open the Announces.json file in your resource folder.
Add a New Entry
Copy an existing announcement object and modify the fields:
{
"text": "Join us for an exciting new event!",
"date": "10.10.2024",
"header": "Weekend Event Announcement!",
"photo": "https://i.imgur.com/3taJXrA.jpeg"
}Save and Restart
Save the file and restart the resource to apply changes.
Command Customization
Customize the announce command in Customize.lua:
Command = {
Permission = 'admin',
Command = 'addAnnounce',
Text = 'New Announce',
Description = {
{name='Header', help='Header'},
{name='Text', help='Text'},
}
}Prop
Type
Multiple Announcements Example
[
{
"text": "First announcement content here...",
"date": "05.09.2024",
"header": "Server Update",
"photo": "https://example.com/image1.jpg"
},
{
"text": "Second announcement content here...",
"date": "06.09.2024",
"header": "New Event",
"photo": ""
},
{
"text": "Important maintenance scheduled for tonight.",
"date": "07.09.2024",
"header": "Maintenance Notice",
"photo": ""
}
]Pro Tip: You can update announcements instantly using in-game commands or by editing the JSON file directly!