> For the complete documentation index, see [llms.txt](https://atiysus-organization.gitbook.io/aty-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atiysus-organization.gitbook.io/aty-scripts/bus-job-remake/installation.md).

# Installation

## Download <a href="#download" id="download"></a>

To find and use the assets, you must have made the purchase from your own keymaster which you have your server key in. Otherwise you will not be able to use the asset.Once you make the purchase, you'll be able to access it from your [keymaster](https://keymaster.fivem.net/asset-grants). If you have more issues regarding [FiveM Escrow](https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151), accounts or asset startup errors you can go here and see if any of them match your case, since Escrow requires some basics. Such as your keymaster account, your license key, etc.

***

## Dependencies <a href="#dependencies" id="dependencies"></a>

This assets has depencies such as frameworks like QBCore and ESX also MySQL connections. You can only use this script with qb-core or es\_extended based servers.

#### MySQL <a href="#mysql" id="mysql"></a>

This asset needs MySQL connections so you need to have one of these resuources:

* oxmysql
* mysql\_async
* ghmattimysql

***

## Ensuring <a href="#ensuring" id="ensuring"></a>

To ensure and use this script in your server, simply add this code in your `server.cfg` file, under your MySQL and framework scripts.

```
ensure aty_busjobv2
```

***

## Setting Up The Config

* TeleportToBus, if you enable this then the player will be teleported to the vehicle when they start a mission.

### Adding A Menu

The key has to be unique and in-order.

* Label can be anything.
* Coords is where players will access the menu and the ped will spawn.
* Routes, is the setting that decides which route will show up in that menu.
* VehicleReturnCoords, is where players will return their vehicle.

***

## Adding Routes

The key and the name has to be the same and unique.

* routeName is the label of the route.
* time, it the text that will appear on the menu that says `estimated time`.
* price is the price of the tickets.
* salary is the money that driver will get after they finish the route.
* exp is the experience that driver will get after they finish the route.

### Adding Stops

The keys has to be in-order.

* StopName is the label of it.
* Coords is where passenger npc's spawn at.
* MarkerCoords is where the bus will stop at.
* Passengers is the amount of the npc's that will spawn.
