UZ Scripts
YoutubeDiscordStore
  • 👋Welcome to UZ Scripts
  • 🛠️Tebex Integration
  • Taintless
    • ❓・What is Taintless
    • Pause Menu
      • Announces
      • Custom Pages
      • Player Details
      • Social Online Time
    • Multicharacter
      • Installation Guide
      • Customize Configuration File
    • Vehicle Shop
    • Spawn Selector
Powered by GitBook
LogoLogo

Taintless

  • Pause Menu
  • Vehicle Shop
  • Multicharacter
  • Spawn Selector
  • Bundle#1
  • [Free] Pure Hud

Trygon

  • Loading Screen
  • Trygon Hud
  • Fuel
  • Garage

Typhon

  • Daily Rewards
  • Job Selector
  • Second Hand

UZ

  • Home
  • Blog
  • Scripts
On this page
  • Announces Overview
  • 1. Structure of Announces in Announces.json
  • 2. Adding New Announces
  • 3. Command Customization
  • 4. Adding Multiple Announces
  • Related Pages

Was this helpful?

Edit on GitHub
  1. Taintless
  2. Pause Menu

Announces

PreviousPause MenuNextCustom Pages

Last updated 14 days ago

Was this helpful?

FiveM Pause Menu Script

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.

Important: Make sure to configure your announces properly in the Announces.json file to ensure they display correctly to your players.

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": ""
    }
]

Fields Explanation

Field
Type
Description

text

String

The main content of the announcement

date

String

Date when the announcement was created (format: DD.MM.YYYY)

header

String

Title/header of the announcement

photo

String

Optional image URL for the announcement

Note: If you don't want to include an image, leave the photo field as an empty string "".

2. Adding New Announces

There are two ways to add new announcements to your server:

Method 1: Using In-Game Commands

To add a new announce using the in-game command:

/addAnnounce Header Text

Example:

/addAnnounce "Weekend Event" "Join us for an exciting new event happening this weekend. There will be exclusive rewards!"

Method 2: Manual Addition via JSON File

  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"
}

3. Command Customization

You can customize the announce command in the Customize.lua file:

Command = {
    Permission = 'admin',
    Command = 'addAnnounce',
    Text = 'New Announce',
    Description = {
        {name='Header', help='Header'},
        {name='Text', help='Text'},
    }
}

Command Configuration Options

Option
Description

Permission

Authorization level required to use the command (e.g., admin, moderator)

Command

The actual command name (default: addAnnounce)

Text

Description text for the command

Description

Command syntax helper with parameter descriptions

4. Adding Multiple Announces

You can add multiple announcements by creating additional objects in the JSON array:

[
    {
        "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. Server will be offline from 2 AM to 4 AM EST.",
        "date": "07.09.2024",
        "header": "Maintenance Notice",
        "photo": ""
    }
]

Pro Tip: You can update announcements instantly using in-game commands or by editing the Announces.json file directly!


Related Pages

Custom Pages