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.
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.
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!
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.
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)
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”.
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”?
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!