Configuration
Here are the available config files for the senor_redzones script. Let me know if you need more stuff to be configured.
Config = {}
Config.Admin = { qb = { permissions = { 'qbcore.god', 'admin' } }, esx = { groups = { 'admin', 'superadmin', 'mod' }, permissions = { 'admin', 'superadmin' } }, ox = { permissions = { 'admin', 'superadmin' } }, qbx = { permissions = { 'qbcore.god', 'admin' } }, default = { permissions = { 'admin', 'command' } },}Configuration Options:
Admin- Framework-specific admin permission groupsqb- QBCore permission levelsesx- ESX groups and permissionsox- OX Core permissionsqbx- QBX permissionsdefault- Standalone fallback permissions
Config.blipColour = 1Config.blipAlpha = 180Config.blipSprite = 161Config.blipScale = 0.8Config.blipDisplay = 4
Config.markerColour = { 255, 42, 24, 120 }Config.markerType = 28Config.markersDrawDistance = 150.0
Config.placementMarkerType = 1Config.placementMarkerColour = { 50, 205, 50, 180 }
Config.hudPosition = 'top-right'
Config.defaultZoneRadius = 250Config.defaultDurationKills = 30Config.defaultDurationTime = 300
Config.scoreboardKey = 'B'
Config.respawnDelayMs = 2000Config.spawnOccupiedRadius = 2.0Configuration Options:
blipColour- Map blip color IDblipAlpha- Map blip transparency (0–255)blipSprite- Map blip sprite IDblipScale- Map blip sizeblipDisplay- Map blip display typemarkerColour- Zone boundary marker color as{ r, g, b, alpha }markerType- Zone boundary marker type IDmarkersDrawDistance- Distance in meters at which markers become visibleplacementMarkerType- Marker type shown during zone placementplacementMarkerColour- Placement marker color as{ r, g, b, alpha }hudPosition- In-zone HUD position:'top-right','top-left','bottom-right','bottom-left'defaultZoneRadius- Default radius in meters for new zonesdefaultDurationKills- Default kill target for kill-based zonesdefaultDurationTime- Default duration in seconds for time-based zonesscoreboardKey- Key to toggle the in-zone scoreboard (default'B')respawnDelayMs- Milliseconds to wait before respawning after deathspawnOccupiedRadius- Radius in meters to check if a spawn point is occupied
Config.loggingEnabled = falseConfig.discordWebhook = ''Config.minRadius = 10Config.maxRadius = 500Config.blipColour = 1Config.markerColour = { 255, 42, 24, 120 }Configuration Options:
loggingEnabled- Enable Discord webhook logging for zone eventsdiscordWebhook- Discord webhook URL for log messages (requiresloggingEnabled = true)minRadius- Minimum allowed zone radius in metersmaxRadius- Maximum allowed zone radius in metersblipColour- Server-side default blip color (used when creating zones via exports)markerColour- Server-side default marker color as{ r, g, b, alpha }
ThemePresets = { red = { primary = '#fa5252', backgroundDark = '#221011' }, pink = { primary = '#e64980', backgroundDark = '#1f0d14' }, grape = { primary = '#be4bdb', backgroundDark = '#1a0d1f' }, violet = { primary = '#7950f2', backgroundDark = '#150d22' }, indigo = { primary = '#4c6ef5', backgroundDark = '#0d1222' }, blue = { primary = '#228be6', backgroundDark = '#0d1522' }, cyan = { primary = '#22b8cf', backgroundDark = '#0d1a1f' }, teal = { primary = '#12b886', backgroundDark = '#0d1a17' }, green = { primary = '#40c057', backgroundDark = '#0d1a10' }, lime = { primary = '#82c91e', backgroundDark = '#151a0d' }, yellow = { primary = '#fab005', backgroundDark = '#221a0d' }, orange = { primary = '#fd7e14', backgroundDark = '#22120d' }, gray = { primary = '#868e96', backgroundDark = '#1a1a1b' },}
Config.theme = ThemePresets['green']Configuration Options:
ThemePresets- Color presets based on Open Color- Each preset has
primary(accent color) andbackgroundDark(UI background)
- Each preset has
Config.theme- Active theme — set to any key fromThemePresets(e.g.ThemePresets['red'])
Commands
Section titled “Commands”/redzone- Open the admin panel (admin only)