# Bus Driver

{% hint style="warning" %}
**Make sure to add the necessary items, item images and job names required for the job**
{% endhint %}

***

* <mark style="background-color:yellow;">**\["name"]:**</mark> It is the label that will appear in menus or notifications.
* The <mark style="background-color:yellow;">**\[‘menu’]**</mark> variable consists of things related to the location from which the job is to be retrieved
  * <mark style="background-color:orange;">\["job\_menu"]:</mark> <mark style="color:yellow;">@vector3</mark> Accepts. The menu access location of the  job.
  * <mark style="background-color:orange;">\["interaction\_distance"]:</mark> <mark style="color:yellow;">@float</mark> Accepts. The player distance controlled to access the menu.

***

## 🚗Bus / Car Settings&#x20;

Contains the details of the operator vehicle. You can enter spawn location and vehicle type.

* <mark style="background-color:orange;">\["model"]:</mark> <mark style="color:yellow;">@string</mark> You can enter the vehicle model here. Be careful to enter a valid vehicle.
* <mark style="background-color:orange;">\["spawnCoords"]:</mark> <mark style="color:yellow;">@vector4</mark> Accepts. It is the position where the vehicle will emerge. The direction your character is facing is the direction the front of your vehicle will face.
* <mark style="background-color:orange;">\["cam\_settings"]</mark>: Camera settings for the cinematic animation when you arrive at the bus stop
  * <mark style="background-color:yellow;">**\["bone"]**</mark>: <mark style="color:yellow;">@number</mark> Bone id where the camera will be fixed to the vehicle.
  * <mark style="background-color:yellow;">**\["fov"]**</mark>: <mark style="color:yellow;">@float</mark> Distance from camera.
  * <mark style="background-color:yellow;">**\["rotation"]**</mark>: <mark style="color:yellow;">@vec3</mark> Camera rotation settings.
  * <mark style="background-color:yellow;">**\["offset"]**</mark>: <mark style="color:yellow;">@vec3</mark> Adjustments of the camera's position direction on the bone.

***

## 🚏Bus Lines

Here you can increase or change the bus lines on which people can work.

* <mark style="background-color:yellow;">**\["line\_number"]**</mark>: <mark style="color:yellow;">@object</mark> Contents of the bus line
  * <mark style="background-color:orange;">**\["reward"]**</mark>: <mark style="color:yellow;">@number</mark> The player's reward for this service.
  * <mark style="background-color:orange;">**\["mission\_time"]:**</mark> <mark style="color:yellow;">@number</mark> Time to be entered for delivery. ***Minutes \* 60 \* 1000.***
  * <mark style="background-color:orange;">**\["extra\_time"]:**</mark> <mark style="color:yellow;">@number</mark> Extra time to be added after the specified delivery time has expired. ***Minutes \* 60 \* 1000***
  * <mark style="background-color:orange;">**\["deducted\_per\_min"]:**</mark> <mark style="color:yellow;">@number</mark> If extra time is activated, a fee will be deducted from the reward for each ‘One’ minute spent.
  * <mark style="background-color:orange;">**\["label"]**</mark>: The title of the bus line that will appear in the menu.
* <mark style="background-color:yellow;">**\["stops"]**</mark>: <mark style="color:yellow;">@object</mark> It is the table with bus stops.
  * <mark style="background-color:orange;">**\[index]**</mark>: <mark style="color:red;">IMPORTANT</mark> ⇒ <mark style="color:yellow;">@number</mark>  This is a stop number. The maximum number of stop found should be written by adding +1. If there are no stop, it should start from 1.
  * <mark style="background-color:orange;">\["coords"]</mark>: <mark style="color:yellow;">@vector4</mark> It is the coordinate of the stop. It is recommended to take a position from the road side in front of the stop. where the vehicle will stop.
  * <mark style="background-color:orange;">\["npc\_coord"]</mark>: <mark style="color:yellow;">@vector4</mark> It is the location where the NPCs in the stop will spawn.
  * <mark style="background-color:orange;">\["distance"]</mark>: <mark style="color:yellow;">@float</mark> The maximum distance of the vehicle to the position. If it is shorter than the specified distance, it will start passenger pick-up and drop-off operations.
  * <mark style="background-color:orange;">\["leaving\_passenger"]</mark>: <mark style="color:yellow;">@number</mark> The number of passengers leaving the bus. The default coach bus has 10 seats. It accepts positive numbers.
  * <mark style="background-color:orange;">\["boarding\_passenger"]</mark>: <mark style="color:yellow;">@number</mark> The number of passengers on the bus. The default coach bus has 10 seats. It accepts positive numbers. If the 10 seats are somehow full for other reasons, the pads will not board.
