This ESX script requires ox_lib and allows you to enforce EMP zones that will disable vehicle engines if unauthorized vehicles stay within the zone for too long. The zones are defined in the config file and can be customized for specific areas, vehicle classes, and jobs that are exempt from the EMP effect.
EMP Zones:
Dynamic Zones: Define multiple EMP zones with custom shapes and sizes using polygon points.
Vehicle Classes: Specify which vehicle classes trigger the EMP effect.
Job Exemptions: Define jobs that are exempt from the EMP effect (e.g., police, ambulance, army).
Warning and Countdown System:
Initial Warning: Players receive a notification when entering an EMP zone, warning them of the impending engine shutdown.
Countdown Timer: A countdown timer begins, notifying the player at regular intervals to leave the zone.
EMP Activation: If the player remains in the zone after the countdown, their vehicle's engine is disabled.
User-Friendly Notifications:
Localized Messages: Notifications are available in multiple languages (e.g., English, German) and can be easily extended.
Clear Alerts: Players receive clear, concise messages when they enter, remain in, and exit the EMP zones.
Easy Configuration:
All settings can be adjusted in the config file.