# ⚙️ Configuration

#### Tuner Shop Settings

```lua
Config.TunerShops = {
    {
        name = 'fast-tunershop-1',
        coords = vector3(895.84, -2103.73, 30.47),
        size = vec3(6.0, 14.0, 4.0),  -- Zone size
        rotation = 340.0,
        job = 'all',  -- or 'mechanic'
        blip = {
            enabled = true,   -- Show/hide blip
            sprite = 72,
            color = 46,
            label = 'Tuner Shop'
        },
        categories = {
            sound = true,        -- Sound category
            color = true,        -- Color category
            plate = false,       -- Plate category
            driving_mode = true, -- Driving mode
            antilag = true,      -- Antilag system
            wheel = true,        -- Wheel offset
            suspension = true,   -- Suspension
        }
    }
}
```

#### Camera Toggle Key

```lua
Config.CameraToggleKey = {
    controlId = 21,    -- LEFT SHIFT
    keyName = 'Shift'  -- For frontend
}
```

#### DrawText System

```lua
Config.DrawText = {
    system = 'ox_lib',  -- 'ox_lib', 'esx', 'qb', 'qbx', 'custom'
    custom = {
        show = function(text) end,
        hide = function() end
    }
}
```

***

### 🔌 Script Events

#### Server Events

**Main System**

```lua
-- Shop selection
'fast-tunershop:server:currentTunerShop'

-- Feature saving
'fast-tunershop:server:saveFeatures'

-- Vehicle entry
'baseevents:enteredVehicle'
```

**Modification Sync**

```lua
-- Sound system
'fast-tunershop:server:syncSound'
'fast-tunershop:server:saveSoundSettings'
'fast-tunershop:server:loadSoundSettings'

-- Color system  
'fast-tunershop:server:syncColor'

-- Wheel system
'fast-tunershop:server:syncWheels'
'fast-tunershop:server:saveWheelSettings'
'fast-tunershop:server:checkWheels'

-- Suspension system
'fast-tunershop:server:syncSuspension'
'fast-tunershop:server:saveSuspensionSettings'

-- Antilag system
'fast-tunershop:server:syncAntilag'
'fast-tunershop:server:saveAntilagSettings'

-- Driving mode
'fast-tunershop:server:saveDrivingModeSettings'

-- Plate system
'fast-tunershop:server:setVehiclePlate'
```

**Vehicle Loading**

```lua
-- Load modifications
'fast-tunershop:server:loadVehicleModifications'

-- Request all modifications
'fast-tunershop:server:requestAllVehicleModifications'
```

#### Adding Sounds

```lua
-- In config/main.lua
Config.EngineSounds = {
    {
        id = 999,
        label = 'New Engine Sound',
        sound = 'new_sound_file'
    }
}
```

#### Adding Colors

```lua
-- In config/main.lua
Config.Colors = {
    {
        id = 999,
        label = 'Custom Color',
        color = {123, 45, 67}  -- RGB
    }
}
```
