Cosmic Crafts Admin Zone
Cosmic Crafts Admin Zone script is used to create OOC zone where combat is restricted and can set only admin can speak
A comprehensive admin zone management system for FiveM ESX servers with voice control capabilities.
Download here
Features
- Safe Zone Management: Create temporary safe zones where combat is prohibited
- Voice Control: Admin-only voice communication within zones
- Visual Indicators: Blips and UI notifications for zone status
- Automatic Cleanup: Proper resource management and cleanup
- Permission System: ESX-based admin permission checking
- Performance Optimized: Efficient code with proper error handling
Configuration (config.lua)
Config = {}
Config.DefaultRadius = 50.0
Config.BlipColor = 2 -- Green
Config.BlipAlpha = 80
Config.BlipSprite = 197
Config.BlipName = "SAFEZONE - No Combat Allowed"
Commands
/adminzone- Usage: Toggle admin zone on/off
- Permission: Admin only
- Description: Creates a safe zone around the admin’s current position where combat is disabled
/adminspeak- Usage: Toggle voice control within admin zone
- Permission: Admin only (requires active admin zone)
- Description: Enables admin-only voice communication within the safe zone`


Installation
-
Ensure you have the required dependencies:
es_extendedpma-voice
-
Place the resource in your server’s resources folder
-
Add to your
server.cfg:ensure adminarea -
Restart your server
Configuration
I) Edit config.lua to customize the script
II) Edit index.html to customize the script
III) Add custom alert sound to html/beep.mp3 or remove it if you don’t want to use it
Client-Side Features:
- Real-time zone detection,
- Combat prevention for non-admin players,
- Vehicle ejection for non-admin players,
- Visual and audio notifications,
- Blip management and updates,
Server-Side Features:,
- Admin permission validation,
- Zone state management,
- Voice control integration,
- Player disconnect handling,
- Resource lifecycle management,
UI Features:
- Responsive notification system,
- Voice status indicators,
- Audio feedback with beep sounds
Social:
Discord: Cosmic Crafts Store
Tebex: https://cosmic-crafts.tebex.io/
| Code is accessible | Yes , Partially Accessible |
| Subscription-based | No |
| Lines (approximately) | 700 |
| Requirements | es_extended , pma-voice |
| Support | No |
