Installation
Download
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. If you have more issues regarding FiveM Escrow, 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
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
This asset needs MySQL connections so you need to have one of these resuources:
- oxmysql
- mysql_async
- ghmattimysql
Ensuring
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.