
FiveM Warning System Script
DESCRIPTION
The STG Warning System adds a sleek, full-screen disciplinary overlay to your FiveM server—letting staff instantly grab a player’s attention with a bold headline, custom message, and animated timer. While the alert is active, you can freeze movement, disable weapons, and apply temporary god-mode to keep situations under control. The script auto-detects ESX, QBCore, or standalone setups, supports full localization, logs every action for easy Discord integration, and restricts access to specified admin groups. Lightweight, plug-and-play, and completely free, it’s the smoothest way to keep order without breaking immersion.
FEATURES
- Full-Screen Warning Overlay: Displays a bold title, custom message, and animated countdown that no one can miss.
- Automatic Countdown Timer: Closes after your configurable time-out (default 20 seconds) to keep gameplay flowing.
- Control & Safety Locks: Optionally freezes movement, disables weapons, and grants temporary god-mode while the warning is active.
- Role-Based Access: Only specified groups (god, superadmin, admin—fully editable) can issue warnings.
- Action Logging & Webhook-Ready: Every warning can be piped to Discord or your own log handler for easy moderation tracking.
- Framework Auto-Detection: Seamlessly works with ESX, QBCore, QBOX, or standalone—no extra setup required.
- Custom Hooks: `OnWarn` and `OnWarnClose` callbacks let you trigger sounds, effects, or extra code.
- Multilingual Localization: Ships with EN, DE, FR, ES, and PT—easily extend to any language.
- Lightweight & Free: Clean, optimized code with zero cost—drop it in and keep your server fair.
https://www.youtube.com/embed/2ksiWsk_Ru8
https://stg-store.gitbook.io/documentation/scripts/warning-system
