Taxi Driver Pro
Taxi Driver Pro is Codineer’s answer to the imperfect taxi jobs flooding the world of FiveM servers. With its attention to detail, 100% translatability and its integration with ESX and its possibility
This guide will show you how to install Taxi Driver Pro.
This guide is very detailed but the basics that are always the same can be found in the Installation tutorial and should be enough for most server owners.
Please note that this guide is written for Taxi Driver Pro version 1.1.3 and the installation might be different for older or newer versions.
- 1.
- 2.Copy the TaxiDriverPro folder to your FiveM servers resources folder.
- 3.Open the config.json file included in your just copied TaxiDriverPro folder.
- 4.
- 5.Edit the config file to your likings and close it (do not forget to save).
- 6.Open your servers config.cfg file and enter
ensure TaxiDriverPro
in a new line.
Please note that the implementation for car key systems is only included in Taxi Driver Pro version 1.1.3 or newer.
Please note that this is a client side event. If your car key system needs server side implementation you will have to implement the bridge yourself.
Taxi Driver Pro has an event called
TaxiDriverPro:CarSpawned
that is triggered whenever the player spawns his taxi.- 1.Vehicle HandleCan be used to retrieve the vehicle object or for native calls
- 2.License PlateCan be used as identifier for some key resources
C# Example
EventHandlers["TaxiDriverPro:CarSpawned"] += new Action<int, string>(TargetFunction);
private void TargetFunction(int handle, string plate)
{
myKeyScript.unlockCar(handle);
}
Lua Example
AddEventHandler("TaxiDriverPro:CarSpawned", function(handle, plate)
myKeyScript.unlockCar(handle)
end)
JS Example
on('TaxiDriverPro:CarSpawned', (handle, plate) => {
myKeyScript.unlockCar(handle);
});
Last modified 1yr ago