Features & Details
Edit your server configs directly ingame without alt-tabbing!
## โจ Why CY Config Editor?
Tired of constantly switching between your game and file explorer to edit configs? **CY Config Editor** lets you edit ANY resource's config files directly from ingame with a beautiful, modern UI.
Perfect for:
-
๐ฎ **Server Owners** - Quick config changes without server restarts
-
๐ ๏ธ **Developers** - Test config values in real-time
-
๐ฅ **Admin Teams** - Easy access without FTP/file access needed
---
## ๐ Features
### ๐ป Professional Code Editor
- Full syntax highlighting for Lua, JSON, and more
- Line numbers with cursor position tracking
- **Search function (Ctrl+F)** with navigation
- Auto-detects file types
- Character and line counter
### ๐๏ธ Visual Editor *(Unique Feature!)*
- **Automatically generates GUI controls** from your config values
- Sliders for numbers, toggles for booleans
- Text inputs for strings
- Vector editors for coordinates
- **Perfect for non-technical admins!**
### ๐บ๏ธ Location Editor
- Get your current player coordinates instantly
- Supports Vector3, Vector4, table, and array formats
- Preview locations with map markers
- One-click copy to clipboard
### ๐ฆ Smart Resource Detection
- Auto-detects ALL server resources
- Shows file structure from fxmanifest.lua
- Filter by Started/Stopped status
- Search resources by name
- Customizable blacklist
### ๐พ Automatic Backup System
- Creates timestamped backups before every save
- Never lose your original configs
- Configurable backup settings
### ๐ Security First
- ACE permission system
- Standalone permission mode
- File extension whitelist
- Restricted files blacklist
- **Escrow files are protected**
---
## ๐ Supported File Types
โ `.lua` - Lua scripts & configs
โ `.json` - JSON configuration files
โ `.cfg` / `.ini` - Server configs
โ `.txt` - Text files
โ `.html` / `.css` / `.js` - NUI files
โ `.xml` / `.yml` / `.yaml` - Data files
โ `.md` - Markdown files
---
## ๐ฅ๏ธ How It Works
-
**Select a resource** from the sidebar
-
**Choose a file** to edit
-
**Make your changes** in the code or visual editor
-
**Save** - Changes are applied automatically!
-
**Reload the resource** with one click
### โ ๏ธ Important Note About Saving
Due to RedM/FiveM platform security, scripts cannot directly write to other resource folders. This is a **security feature**, not a limitation of this script.
**Our Solution:**
- Run `auto_apply_configs.bat` (Windows) or `auto_apply_configs.sh` (Linux) in the background
- The watcher automatically copies your saved files to the correct locations
- Seamless experience - just keep the watcher running while you edit!
*This is the cleanest solution possible within FiveM/RedM's security model.*
---
## ๐ฆ What's Included
```
CY-configeditor/
โโโ client/main.lua
โโโ server/main.lua
โโโ shared/framework.lua
โโโ html/
โ ย โโโ index.html
โ ย โโโ style.css
โ ย โโโ script.js
โโโ config.lua
โโโ fxmanifest.lua
โโโ auto_apply_configs.bat ย ย โ Windows auto-watcher
โโโ auto_apply_configs.sh ย ย โ Linux auto-watcher
โโโ README.md ย ย ย ย ย ย ย ย โ Full documentation
```
---
## โ๏ธ Easy Configuration
```lua
Config = {}
-- Debug Mode (shows detailed logs with rate-limiting)
Config.Debug = false
-- Framework Detection
Config.Framework = 'standalone' -- 'auto', 'standalone'
-- Permission System
Config.UseAcePermissions = true
Config.AcePermission = 'configeditor.admin'
-- Alternative: Framework-Based Permissions
Config.AllowedGroups = {
ย ย ['admin'] = true,
ย ย ['owner'] = true,
ย ย ['developer'] = true
}
-- Security
Config.RestrictedFiles = {
ย ย 'server.cfg',
ย ย 'password',
ย ย 'key',
ย ย 'license',
ย ย 'token',
ย ย 'secret',
ย ย 'credentials',
ย ย '.env'
}
-- ERWEITERT: Alle editierbaren Dateitypen
Config.AllowedExtensions = {
ย ย -- Lua
ย ย '.lua',
ย ย
ย ย -- Web/NUI
ย ย '.html',
ย ย '.htm',
ย ย '.css',
ย ย '.js',
ย ย '.jsx',
ย ย '.ts',
ย ย '.tsx',
ย ย '.vue',
ย ย
ย ย -- Data/Config
ย ย '.json',
ย ย '.xml',
ย ย '.yml',
ย ย '.yaml',
ย ย '.ini',
ย ย '.cfg',
ย ย '.conf',
ย ย '.config',
ย ย '.toml',
ย ย
ย ย -- Text
ย ย '.txt',
ย ย '.md',
ย ย '.log',
ย ย
ย ย -- SQL
ย ย '.sql',
ย ย
ย ย -- Sonstige
ย ย '.csv',
ย ย '.properties'
}
-- Auto-Detect Mode
Config.AutoDetectResources = true -- If true, all resources are automatically detected
-- Optional: Manual Whitelist (only if AutoDetect = false)
Config.EditableResources = {
ย ย 'your_job_script',
ย ย 'your_shop_script',
ย ย -- Only relevant if AutoDetect = false
}
-- Blacklist for sensitive Resources (will ALWAYS be excluded)
Config.BlacklistedResources = {
ย ย -- Database
ย ย 'mysql-async',
ย ย 'oxmysql',
ย ย 'ghmattimysql',
ย ย
ย ย -- System/Core
ย ย 'screenshot-basic',
ย ย 'sessionmanager',
ย ย 'hardcap',
ย ย 'rconlog',
ย ย 'monitor',
ย ย 'mapmanager',
ย ย 'spawnmanager',
ย ย 'fivem',
ย ย 'yarn',
ย ย 'webpack',
ย ย 'chat',
ย ย 'baseevents',
ย ย 'basic-gamemode',
ย ย 'cron',
ย ย 'money',
ย ย
ย ย -- Chat/Theme
ย ย 'chat-theme-gtao',
ย ย
ย ย -- FiveM Maps
ย ย 'fivem-map-hipster',
ย ย 'fivem-map-skater',
ย ย
ย ย -- Common Libraries
ย ย 'bob74_ipl',
ย ย 'PolyZone',
ย ย 'progressbar',
ย ย 'menuapi',
ย ย 'warmenu',
ย ย 'mythic_progbar',
ย ย 'mythic_notify',
ย ย 'pNotify',
ย ย
ย ย -- FiveM Default
ย ย 'webadmin',
ย ย 'scoreboard',
ย ย 'playernames'
}
-- Automatically exclude System Resources
Config.IgnoreSystemResources = true -- [fivem], [system], etc.
-- Additionally: Ignore resources with specific prefixes
Config.IgnoreResourcePrefixes = {
ย ย -- 'qb-', ย ย ย -- Uncomment if you don't want QB-Core standard resources
ย ย -- 'esx_', ย ย -- Uncomment if you don't want ESX standard resources
}
-- Only show Resources with specific files
Config.RequiredFiles = {
ย ย 'config.lua',
ย ย 'settings.lua',
ย ย 'config.json',
ย ย 'settings.json',
ย ย 'shared.lua',
}
Config.ShowAllResources = true -- If true, ALL resources are shown (even without config files)
-- Backup System
Config.AutoBackup = true
Config.BackupInterval = 3600 -- Seconds (1 hour)
Config.MaxBackups = 10
Config.BackupPath = 'backups/'
-- Logging
Config.LogChanges = true
Config.LogPath = 'logs/config_changes.log'
Config.DiscordWebhook = '' -- Optional: Discord Webhook for change logs
-- UI Settings
Config.UIPosition = 'center' -- 'center', 'right', 'left'
Config.DefaultTheme = 'dark' -- 'dark', 'light'
Config.ShowTutorial = true
-- Editor Features
Config.EnableSyntaxCheck = true
Config.EnableAutoSave = false
Config.AutoSaveInterval = 300 -- 5 minutes
Config.EnableVersioning = true
Config.MaxVersionHistory = 50
-- Location Editor
Config.ShowMarkerPreview = true
Config.MarkerType = 1 -- GTA V Marker Type (1 = Cylinder)
Config.PreviewRadius = 100.0
-- Commands
Config.OpenCommand = 'configeditor'
Config.ReloadCommand = 'reloadconfig'
-- Keybind
Config.OpenKey = 166 -- F5 Key (GTA V Native)
-- Multi-Language Support
Config.Locale = 'de' -- 'en', 'de', 'fr', 'es'
Config.Locales = {
ย ย ['de'] = {
ย ย ย ย ['open_editor'] = 'Config Editor รถffnen',
ย ย ย ย ['save_success'] = 'Konfiguration erfolgreich gespeichert',
ย ย ย ย ['save_error'] = 'Fehler beim Speichern',
ย ย ย ย ['backup_created'] = 'Backup erstellt',
ย ย ย ย ['no_permission'] = 'Keine Berechtigung',
ย ย ย ย ['file_not_found'] = 'Datei nicht gefunden',
ย ย ย ย ['invalid_syntax'] = 'Ungรผltige Syntax erkannt',
ย ย ย ย ['confirm_changes'] = 'รnderungen bestรคtigen?',
ย ย ย ย ['restart_required'] = 'Server-Neustart erforderlich',
ย ย },
ย ย ['en'] = {
ย ย ย ย ['open_editor'] = 'Open Config Editor',
ย ย ย ย ['save_success'] = 'Configuration saved successfully',
ย ย ย ย ['save_error'] = 'Error saving configuration',
ย ย ย ย ['backup_created'] = 'Backup created',
ย ย ย ย ['no_permission'] = 'No permission',
ย ย ย ย ['file_not_found'] = 'File not found',
ย ย ย ย ['invalid_syntax'] = 'Invalid syntax detected',
ย ย ย ย ['confirm_changes'] = 'Confirm changes?',
ย ย ย ย ['restart_required'] = 'Server restart required',
ย ย }
}
---
## ๐ Requirements
- โ RedM Server (Latest Artifact)
- โ OneSync (Recommended)
- โ Works standalone or with VORP Framework
---
## ๐ฏ Perfect For
| Use Case | Benefit |
|----------|---------|
| Quick config tweaks | No more alt-tabbing to file explorer |
| Testing spawn locations | Use the Location Editor to get coords |
| Training new admins | Visual Editor is beginner-friendly |
| Remote management | Edit configs without FTP access |
| Live debugging | Change values and see results instantly |
---
## ๐ฌ Support
-
๐ **Full Documentation** included (README.md)
-
๐ฌ **Discord Support:** [CY DevWorks]()
-
๐ **Bug Reports:** Via Discord ticket system
-
๐ **Free Updates:** Lifetime updates included
---
## ๐ Changelog
**v1.2.0** - Auto-Watcher Update
- NEW: `auto_apply_configs.bat` for Windows
- NEW: `auto_apply_configs.sh` for Linux
- Automatic file copying in real-time
- Improved pending file system
**v1.1.0** - RedM Update
- Full RedM/VORP compatibility
- Improved backup system
- Better error handling
**v1.0.0** - Initial Release
- Code Editor with syntax highlighting
- Visual Editor with auto-generated controls
- Location Editor
- Backup system
---
## โ๏ธ License Terms
โ Use on multiple servers you own
โ Customize configuration
โ Resell or redistribute
โ Share with others
โ Decompile or reverse engineer
---
## ๐ Purchase Includes
- โ Lifetime updates
- โ Discord support
- โ Detailed documentation
- โ Windows & Linux support
---
**Made with โค๏ธ by CY DevWorks**
*Stop alt-tabbing. Start editing ingame.*