Announcements

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.

circle-info

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:

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

circle-exclamation

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:

Example:

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:

3. Command Customization

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

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:

circle-check

Custom Pageschevron-right

Last updated

Was this helpful?