UZStore
StoreYoutubeDiscord
  • 👋Welcome to UZStore
  • 📞INFORMATION
    • ⭐Discord Customer Role
    • ❔How can I download the files?
    • 🖥️Supported Resolutions
    • 🛠️Tebex Integration
    • 📝Updates
      • 🧙‍♂️UZCore
      • 🚧Trygon Garage
      • 🏆〡Trygon Hud V2.5
      • 🎁 Daily reward
      • 🌎〡Spawn Selector
      • 🤖〡Register
      • 🔧〡Trygon Mechanic
      • 🚗〡Trygon VehicleShop V2
    • 🧙‍♂️UZCore
  • 💯Taintless
    • ⏸️〡Pause Menu
      • How is it Customize ?
        • Player Details
        • Social/Online/Time
        • Custom Page
        • Announces
      • Changelog
        • v0.9.3
        • v0.9.4
        • v0.9.5
    • 💎〡Multicharacter
      • SQL Installation
      • Notification
      • Changelog
    • 🌎〡Spawn Selector
      • Customize
      • Changelog
        • v1.4.0
        • v1.5.0
    • 🌴〡Pure Hud
      • Customize
  • 👀Typhon
    • 🧙🏼〡Player List
      • Customize
    • 🤝〡Second Hand
      • Customize
      • Common errors and their solutions
    • 🎁〡Daily Reward
      • Customize
    • 📷〡Job Selector
      • Customize
  • 💚Trygon
    • 🏆〡Trygon Hud V2.5
      • SQL Installation
      • Common errors and their solutions
    • 🚧〡Trygon Garage
      • Customize
      • SQL Installation
    • 🎦〡Loadig Screen
      • Customize
    • 🎇〡Trygon Inventory
      • Customize
      • Exports
      • How is it installed ?
    • 🚗〡Trygon VehicleShop V2
      • Customize
      • Common errors and their solutions
    • 🤖〡Register
      • Customize
    • 🔧〡Trygon Mechanic
      • Customize
      • Common errors and their solutions
    • 🚛〡Jobs shipping
      • SQL Installation
Powered by GitBook
On this page
  • Announces Overview
  • 2. Adding New Announces
  • 5. Testing Your Announces
  • Summary

Was this helpful?

  1. Taintless
  2. ⏸️〡Pause Menu
  3. How is it Customize ?

Announces

PreviousCustom PageNextChangelog

Last updated 7 months ago

Was this helpful?

Announces Overview

Announcements are used to communicate important messages to players, such as server updates, events, or general announcements. The announce system can include text, headers, dates, and optionally images to make your messages more engaging.

1. Structure of Announces in Announces.json

The announcements are defined in the Announces.json file. Each announcement includes several key elements:

[
    {
        "text": "Lorem ipsum dolor sit amet consectetur. Penatibus ullamcorper dui suscipit fringilla dis magna. Et viverra tellus vitae id congue tellus lorem. Pharetra feugiat nunc facilisi vitae pellentesque integer. Hendrerit orci rutrum odio.",
        "date": "05.09.2024",
        "header": "Welcome to the server!",
        "photo": ""
    }
]

In the example above, each announce includes:

  • text: The main content of the announcement.

  • date: The date of the announcement, formatted as dd.mm.yyyy.

  • header: A title for the announcement, used to grab the player's attention.

  • photo: The photo of the person who made the announcement.

2. Adding New Announces

To add a new announce, use the command:

/addAnnounce Header Text

Command Customize:

Customize.lua
Command = {
    Permission = 'admin',
    Command = 'addAnnounce',
    Text = 'New Announce',
    Description = {
        {name='Header', help='Header'},
        {name='Text', help='Text'},
    }
}
  • Command: The command required for the announce, such as /addAnnounce.

  • Permission: The authorization level required to use the command (e.g., admin).

  • Text: Description of the command.

  • Description: Command syntax helper.

    • Header: The title of the announcement.

    • Text: The content of the announcement.

Adding Announcements Manually:

  1. Open the Announces.json file.

  2. Copy an existing announcement object.

  3. Modify the text, date, header and photo fields as needed:

{
    "text": "Join us for an exciting new event happening this weekend. There will be exclusive rewards!",
    "date": "10.10.2024",
    "header": "Weekend Event Announcement!",
    "photo": "https://i.imgur.com/3taJXrA.jpeg"
}

5. Testing Your Announces

After updating the Announces.json file, ensure that the changes are displayed correctly:

Note: Announcements will be updated automatically without the need for any manual server reload

  • Verify the Output:

    • Ensure the text displays correctly without being truncated.

    • Check that the photo, if included, loads properly.

    • Confirm that the date and header are formatted correctly.

Summary

  • Edit the Announces.json file to create or update announcements, or use the specified command to add a new announcement in-game.

  • Include text, date, header, and photo to make your announcements effective. The photo is automatically set, ensuring each announcement is visually engaging.

  • Test each announcement to ensure it displays correctly in-game.

Using these guidelines, you can create clear and effective announcements that keep your player community informed and engaged.

💯
❤️
Announces