BusDriverMike - AI Bus Transportation System V1.1

AI Bus Transportation.
This mod makes buses spawn, it then carries your players to the specified location, then deletes the buses. Simple right?

Things planned to fix in future updates

  1. The god awful AI. it’s not TERRIBLE. but it’s not great either.
  2. the bus stops. departures aren’t bad, but the stops are janky.
  3. the way locations are handled. i’d LIKE to tie them to actual bus stops. but again… Dat AI y’all.

DOWNLOAD

https://github.com/mikethemadkiwi/busdrivermike
Updated to V1.1: April 1st 2023

VIDEO

https://youtu.be/J1AlGcMldQI

19 Likes

Looks great!

3 Likes

Yea looks good! Good job!

1 Like

Would be cool if the bus then drives X = amount away from the player so it doesnt just despawn infround of them.
Same as the arrival of the bus.

Other than that amazing script

1 Like

i debated it. even tried it for a brief moment, but it honestly just meant more chances for the AI to turn feral instead of behaving the way i would’ve liked it.
All i ended up with is an AI that runs into wall repeatedly instead of driving away.
:smiley:

1 Like

It would be great to be able to bind the keys to your preference in a config.lua

bind keys?
this mod is 100% driven by zones and nui hud.
there’s no keys TO bind.

What I mean with keys is that in order to get into the bus you need to press ‘+’ from the numpad. Many servers have custom binded keys. In my case, I use the + for the car remote and that leads that the script has a conflict with the other script on the same key. So it would be great if the user can config the keybindings as many others do.

1 Like

I really really love this script! Especially for new people or people stuck in a jam with no car. Is there any possibility you could add a feature with a toggle where you could enable only 1 bus in the city and it just runs a route? I would love to define like a 4 or 5 stop route that the bus just runs repeatedly. I think that would cause a lot of RP scenarios!

1 Like

Amazing job Mike, thank you so much

1 Like

that simply isnt how the code is written. the zone detection is using animations to allow access to the bus. if you are having to press something to get into the bus, i’m unsure how or why.
there are NO keys being bound to the code at all, so you shouldnt have to press anything. just walk up to the door and it should play a taskentervehicle on your playerped. feel free to msg me and we can figure it out.

1 Like

100% possible, the buses could easily continue after the active stop, but i avoided doing it in this version mostly to avoid random buses driving around the place without need for them. feel free to edit the heck out of it and make it do so. i’m quite happy to see this code being reused for things like that.

Very nice done, and love your energy to codeing. Keep up the good work!

I am going to use this for my server! Am i allowed to edit the code for vRP so that you buy a ticket from mike outside that bus before entering the bus? (i wont release it, just want to make sure im allowed to edit it as its your work)

1 Like

of course! and if you want me to add it as an optional code addition in the repo, feel free to fork it in the github and i’ll happily merge it in as an “extra”.

1 Like

Sure, if it works out perfectly i will send you the code. I wont need any credit at all :slight_smile:

1 Like

looking to add a stop and try this out. but what exactly is the “passenger” coords? where should i set these? where should i stand to get these coords? thanks in advance.

Nevermind. I wanted this script for a way to get a ride back from jail when released. I got it in and seems to work fine BUT we also have a script that stops players from stealing cars and they are locked. Therefore he just tugs at the bus handle and doesnt get in. Looks great though. Wish i could use it.

seriously last question. I think i can exclude the bus from the vehicle lock script i use. But while making a zone with PolyZone. It created and i see it in my root folder. But where do you get the number for “aZone”?

image

simply putting the “coach” hash model in your vehicle blacklist SHOULD solve the issue you were encountering.
passenger cooords are simply where the "loading"zone is to allow the player to trigger the animation that puts them on the bus.
as for the UID. it’s arbitrary/random.
I just made them unique so they wouldnt clash when it tried to use them as the identifier in the array.
you could call it “ardvark420” if you like assuming there isnt an other one. hope that helps!

1 Like

thank you this does help. but i was also asking about this number here, where do you get it? the aZone. thank you so much for your reply.

image

1 Like