Route Creation
Here is a walk through of how to create a new route
Step 1 - Add your new route to your config
You add the new route into the config's list by using the template below:
```lua
["111"] = {
label = Lang['route_number_menu'],
description = Lang['route_desc_111'],
icon = 'route',
VehicleModel = 'pc-coach',
SpawnLocation = vector4(457.27, -654.26, 27.94, 215.0),
LiveryNumber = {enable = true, option = 1},
RoofLiveryNumber = {enable = true, option = 7},
ExtraNumber = {enable = false, option = 6},
PlatformNumber = 1,
Tier = 8,
RouteNumber = 111,
ServiceType = Lang["route_type_express"],
StartingBusStop = Lang['next_busstop']:format("Example Road"),
},
```The StartingBusStop option is used for the first bus stop's name when the notification for the next bus stop is triggered. i.e. "Next stop is Example Road"
Step 2 - Adding the route description
In the language.lua file you will find a route description section add the routes description into there using this as a template:
Step 3 - Creating the route
Go into client > customize.lua and go to the bottom of the route entries to start creating a new route:
After the first entry is done you now need to add any checkpoints or bus stop's as you go through the route:
When you are on your last bus stop of the route before you return to the depo/ station your bus stop should look like this:
You can add checkpoints after this last bus stop entry to help return the driver to the bus depo/ station if you wish.
Adding the depo is simple it is the last entry in the route list. It should look like this:
Example of a full route used in the pc-busjob script:
How to create new YMAP routes
To create a route with some new bus stop props (i.e. signs, shelters or other props you wish to use) you have to create a new .ymap file to add into a stream folder of a resource (i would recommend the pc-busjob-maps that comes bundled with the pc-busjobs script) for it to be loaded. If you don't know how to create a new .ymap this I would recommend following this video below done by Otto Mapping.
Last updated