> For the complete documentation index, see [llms.txt](https://nayzeee-dev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nayzeee-dev.gitbook.io/docs/nayzeee-scripts/nayzeee-traffic/configuration.md).

# Configuration

<details>

<summary>View Full Config</summary>

```lua
--[[
    NAYZEEE Traffic - Configuration
    discord.gg/nayzeeedev
]]

Config = {}

-- Enable debug messages in F8 console (set to true for development)
Config.Debug = false

-- ══════════════════════════════════════════════════════════════
-- COMMAND SETTINGS
-- ══════════════════════════════════════════════════════════════

Config.Command = 'traffic'
Config.Keybind = nil -- Set to key like 'F7' to add keybind, nil to disable

-- ══════════════════════════════════════════════════════════════
-- DEFAULT DENSITY VALUES (0.0 = none, 1.0 = normal GTA default)
-- ══════════════════════════════════════════════════════════════

Config.Defaults = {
    pedestrians = 1.0,      -- Pedestrian density
    vehicles = 1.0,         -- Vehicle density
    parkedCars = 1.0,       -- Parked car density
    randomVehicles = 1.0,   -- Random vehicles on roads
    scenarioPeds = 1.0,     -- Scenario peds (people doing activities)
}

-- ══════════════════════════════════════════════════════════════
-- PRESETS (Quick settings)
-- ══════════════════════════════════════════════════════════════

Config.Presets = {
    ['empty'] = {
        label = 'Empty City',
        icon = 'ghost',
        pedestrians = 0.0,
        vehicles = 0.0,
        parkedCars = 0.0,
        randomVehicles = 0.0,
        scenarioPeds = 0.0,
    },
    ['minimal'] = {
        label = 'Minimal Traffic',
        icon = 'moon',
        pedestrians = 0.2,
        vehicles = 0.2,
        parkedCars = 0.3,
        randomVehicles = 0.2,
        scenarioPeds = 0.2,
    },
    ['light'] = {
        label = 'Light Traffic',
        icon = 'cloud-sun',
        pedestrians = 0.4,
        vehicles = 0.4,
        parkedCars = 0.5,
        randomVehicles = 0.4,
        scenarioPeds = 0.4,
    },
    ['normal'] = {
        label = 'Normal Traffic',
        icon = 'sun',
        pedestrians = 1.0,
        vehicles = 1.0,
        parkedCars = 1.0,
        randomVehicles = 1.0,
        scenarioPeds = 1.0,
    },
    ['busy'] = {
        label = 'Rush Hour',
        icon = 'car-burst',
        pedestrians = 1.5,
        vehicles = 1.5,
        parkedCars = 1.0,
        randomVehicles = 1.5,
        scenarioPeds = 1.0,
    },
}

-- ══════════════════════════════════════════════════════════════
-- SYNC SETTINGS
-- ══════════════════════════════════════════════════════════════

Config.Sync = {
    enabled = true,             -- Sync settings to all players
    notifyOnSync = false,       -- Notify when another admin changes settings
    saveLocally = true,         -- Save settings to KVP
}

-- ══════════════════════════════════════════════════════════════
-- PERMISSIONS
-- ══════════════════════════════════════════════════════════════

Config.Permissions = {
    enabled = true,             -- Set false to allow anyone
    acePermission = 'traffic.control',
    allowedGroups = {
        'admin',
        'superadmin',
        'mod',
        'god',
    },
}

-- ══════════════════════════════════════════════════════════════
-- EMERGENCY & SPECIAL VEHICLES
-- ══════════════════════════════════════════════════════════════

Config.Disable = {
    emergencyServices = true,   -- Disable dispatch (police, ambulance, fire)
    garbageTrucks = true,       -- Disable garbage trucks
    randomBoats = true,         -- Disable random boats
}

-- ══════════════════════════════════════════════════════════════
-- STORAGE KEY (Don't change unless you know what you're doing)
-- ══════════════════════════════════════════════════════════════

Config.StorageKey = 'nayzeee_traffic:settings'

```

</details>
