Waypoint AI Taxi is a script that lets you call an AI taxi and have them drive you to your destination. AI Taxi gives your players another avenue of transportation.
How it works:
Players call an AI Taxi using the provided command and/or client events
When the taxi arrives, the player sets the destination on the map
Players have the option to tell the taxi to driver faster (configurable)
Multiple players can share the same taxi
Player is charged based on time in the taxi and is charged once they exit the taxi (configurable)
The player can also choose to cancel the taxi if they no longer need it
Notes:
In order for players to share a taxi and be able to enter the vehicle, they need to be within 50 units of the player who called the taxi.
When the ride is over, the taxi will drive away and will despawn after 20 seconds.
Support for both QB and ESX, all framework functions are open source in the framework.lua file.
You can easily modify the script to support other frameworks by modifying the framework.lua file
Performance:
The script has an idle CPU time of 0.00ms
While in use, the CPU time is 0.05ms on the client who called the Taxi
On other nearby clients, the CPU time is 0.01ms, otherwise 0.00ms.
DISCLAIMERS:
For full transparency, this script is NOT going to work 100% of the time.
AI navigation is far from perfect. There is no guarantee that the AI Taxi will be able to reach your location. There are plenty of variables and obstacles that can result in the AI not reaching a player including but not limited to: player location, traffic, other players, etc.
The AI Taxi will try to navigate as close to the location where the player calls them from, so the player needs to be mindful that they are in an accessible area before calling AI Taxi.
The AI Taxi tends to have the most difficulties, when the person is far away from the road, in tight alleyways, on roof tops, or other hard to reach areas. The success rate, is highly dependent on the location that the AI Taxi is dispatched to.
Dependencies:
Framework: QBCore or ESX
Notify: QB, ESX, OX
Optional:
qb-smallresources/seatbelt.lua - or equivalent seatbelt script
seatbelt check can be disabled
LegacyFuel or equivalent fuel script - for fueling up the taxi
oxmysql - only needed if you want to use telemetry
People that want to make money i understand, making quality scripts but just some simple things and then charge insane prices, also the AI-Ems script he posting. you can get it for free and edit some things… and guess what costs also $24 i guess he just ruining his own name atm.
That is correct, it is not 100%. I am just setting honest expectations here so people know what they are getting.
As I call out below that bullet point, there are a multitude of reasons that can lead to any number of issues. Most notably, when you take player inputs (start and stop points) and feed it into the navigation there is a chance for failure if the players were not in easy to reach areas. You also have to account for unknown obstacles that could impede them from traveling from point A to B.
I have built in extra logic to try to help the AI find their way out of these types of situations, which does work a decent amount of time.
More than happy to help you figure out why its not working, but I’m going to need a lil more to go off to help troubleshoot. Feel free to join the support discord as well for faster help.
Is your get in vehicle button F or rebound to a different button?
How close are you standing to the car when trying to get in? You’ll need to be pretty close to it.
Did the taxi fully stop at the pickup location and it showed “get in taxi” ?
Thank you all for the support and feedback! I’m happy to announce that Waypoint AI Taxi now also supports ESX.
v1.0.3 has been released.
With this release, I have added framework support, refactoring all framework specific logic into an open sourceframework.lua file.
QBCore and ESX frameworks are supported by default, other frameworks could easily be supported as well with some modifications to the framework file. Additionally the script now supports QBCore, ESX or OX for notifications.
Additionally I fixed a qb bug related to checking if a player was dead, adding a check for inlaststand in addition to isdead
- Added `Config.LocationOverrides` to the config.
- With this option you can now specify the locations where the taxi will spawn if a player is within a radius of specific coordinates.
- This can be useful if you want to control specifically where the taxi spawns at some locations.