πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Routes Configuration

The default configuration includes 9 waypoints with different speed limits. You can modify and add routes in the config.lua file.

Default Routes

Routes = {
    [1] = {
        speed = Config.urbanSpeed,
        x = 67.72,
        y = -1111.93,
        z = 27.94
    },
    [2] = {
        speed = Config.urbanSpeed,
        x = 645.39,
        y = -294.65,
        z = 42.29
    },
    [3] = {
        speed = Config.highwaySpeed,
        x = 2427.21,
        y = 2889.86,
        z = 47.83
    },
    [4] = {
        speed = Config.interUrbanSpeed,
        x = 1486.3,
        y = 2741.52,
        z = 36.38
    },
    [5] = {
        speed = Config.interUrbanSpeed,
        x = 311.02,
        y = 2574.02,
        z = 42.65
    },
    [6] = {
        speed = Config.interUrbanSpeed,
        x = 594.26,
        y = 2186.18,
        z = 68.44
    },
    [7] = {
        speed = Config.interUrbanSpeed,
        x = -96.34,
        y = 1852.26,
        z = 197.63
    },
    [8] = {
        speed = Config.urbanSpeed,
        x = -43.21,
        y = -470.87,
        z = 38.96
    },
    [9] = {
        speed = Config.urbanSpeed,
        x = 248.29,
        y = -1395.82,
        z = 29.54
    }
}

Adding New Routes

To add a new waypoint (for example, waypoint 10):

[10] = {
    speed = Config.urbanSpeed,
    x = 21.29,
    y = -1305.82,
    z = 30.54
}

You should also add audio if you need it. Place a new sound file in the html/sounds folder with the following name: 10en.mp3

Note that the number 10 is the waypoint number. If it were 11, it would be 11en.mp3.

In case you use a language other than English, use the appropriate suffix:

  • English: 10en.mp3
  • French: 10fr.mp3
  • German: 10de.mp3
  • Spanish: 10es.mp3
  • Hungarian: 10hun.mp3