Configuration

Basic Configuration

Edit config.lua to set your F1 vehicle model:

Config = {}

Config.CarModelName = "cw2020"  -- Change to your F1 car spawn name

Important: The model name must match your F1 vehicle's spawn name exactly (case-sensitive).

Checkpoint Configuration

Checkpoints are defined in client.lua starting around line 133. The system uses three types of checkpoints:

Checkpoint Types

  1. Start/Finish Line (type = "start")

    • Marks lap start and finish

    • Uses rectangular detection zone

    • Only one start checkpoint allowed

  2. Between Checkpoints (type = "bet")

    • Validation points along the track

    • Must pass all to achieve a valid lap

    • Uses circular detection zones

  3. Sector Markers (type = "sector")

    • Divides lap into sectors (typically 3)

    • Also counts as validation checkpoint

    • Uses circular detection zones

Checkpoint Structure

Adding/Editing Checkpoints

  1. Get Coordinates: Use a coordinate tool or in-game method

  2. Add to Array: Insert new checkpoint in racing order

  3. Set Type: Choose start, bet, or sector

  4. Set Detection Zone:

    • Start line: width, length, heading

    • Others: radius (in game units)

  5. Test: Drive through to verify detection

Example Track Layout:

Minimum Lap Time

Prevents accidental lap triggers from brief checkpoint crossings:

Adjust based on your track length:

  • Short tracks: 5000-10000 ms (5-10 seconds)

  • Medium tracks: 15000-30000 ms (15-30 seconds)

  • Long tracks: 60000+ ms (1+ minute)

Last updated