> For the complete documentation index, see [llms.txt](https://zynoxdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zynoxdev.gitbook.io/docs/zynox-resources/zx_tsunami.md).

# ZX - Restart Warning

Zynox Studio Documents > ZYNOX RESOURCES

## 🌊 ZX - Restart Warning

High-immersion disaster restart announcement — AI TTS dispatcher voice, 3-phase audio sirens, power grid blackout flickers, vehicle headlight boosting, and txAdmin integration.

A realistic, emergency broadcast system for FiveM. When a scheduled restart approaches, the script coordinates sirens, ambient tension music, client-side synthesized voice dispatchers, electrical grid power surges, and stormy weather to deliver an unforgettable disaster experience.

```lua
author 'Zynox Development'
```

```lua
dependencies { 'standalone', 'txAdmin' }
```

![Version](https://img.shields.io/badge/version-1.0.0-0088ff.svg) ![Compatibility](https://img.shields.io/badge/FiveM-Standalone%20%7C%20Qbox%20%7C%20QBCore%20%7C%20ESX-00a2ff.svg) ![Resmon](https://img.shields.io/badge/Resmon-0.00ms-0066ff.svg) ![txAdmin](https://img.shields.io/badge/txAdmin-Native%20Events-0088ff.svg) ![Author](https://img.shields.io/badge/Author-Zynox%20Development-0055ff.svg)

***

### 📑 Resource Pages

* [📥 Installation & Setup](/docs/zynox-resources/zx_tsunami/installation.md)
* [⚙️ Configuration Guide](/docs/zynox-resources/zx_tsunami/configuration.md)
* [🎮 In-Game Testing & Commands](/docs/zynox-resources/zx_tsunami/commands.md)
* [❓ Troubleshooting & FAQ](/docs/zynox-resources/zx_tsunami/troubleshooting.md)

***

### Overview

* **Natural AI voice announcement** — Chromium Web Speech API synthesizes crisp, natural dispatcher warnings in real-time with zero external paid API subscriptions or keys.
* **3-Phase emergency audio sequence** — Plays high-intensity alert sirens (`warning1.ogg`), background tension ambience (`bg-voice.ogg`), and concluding sirens (`warning2.ogg`).
* **Power grid surge & blackout** — Realistic multi-phase city blackout with rapid electrical surges, voltage sags, and dark streetlights.
* **Vehicle headlight boosting** — Automatically multiplies headlight output on moving vehicles during power outages to preserve driver safety and cinematic atmosphere.
* **Dynamic weather blending** — Gradually cross-fades GTA V weather into disaster storms (`THUNDER`) and restores smoothly back to `CLEAR`.
* **All-Clear cancellation flow** — Natively detects skipped or cancelled txAdmin restarts, sounding an upbeat All-Clear voice announcement and restoring grid electricity.
* **Full txAdmin integration** — Listens directly to `txAdmin:events:scheduledRestart` pulses without manual timers.
* **Admin test command** — Simulate countdowns anytime with `/testrestart [minutes]` and cancel with `/testrestart cancel`.

***

### 🛠️ Technical Specifications

| Property                  | Details                                              |
| ------------------------- | ---------------------------------------------------- |
| **Framework**             | Standalone (Qbox, QBCore, ESX, vRP, Custom)          |
| **Idle Resmon**           | **0.00ms** (Strict zero-tick idle performance)       |
| **Active Resmon**         | Under **0.01ms** during blackout and audio sequences |
| **Speech Engine**         | Client-side CEF Web Speech Synthesis                 |
| **Audio Format**          | High-fidelity compressed `.ogg` audio files          |
| **txAdmin Compatibility** | Native scheduled restarts & cancellations            |

***

-# © 2026 Zynox Development • [Official Store](https://zynoxdev.tebex.store/) • [Discord](https://discord.gg/2yuPTmsqjX)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://zynoxdev.gitbook.io/docs/zynox-resources/zx_tsunami.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
