Installation

AI Taxi Script Installation Guide

Follow these simple steps to install and configure the AI Taxi script on your FiveM server:


Step 1: Download the Script

  1. Download the latest version of the AI Taxi script from your provided source or developer's repository.

  2. Extract the downloaded .zip file to a folder on your computer.


Step 2: Add the Script to Your Server

  1. Move the extracted folder into your server's resources directory.

    • Example path: server-data/resources/[your-folder]/ai-taxi

  2. Ensure the folder name is correct and matches the script's intended name.

    • Example: Rename the folder to ai-taxi if necessary.


Step 3: Configure fxmanifest.lua

  1. Ensure your fxmanifest.lua includes the following entry to enable Lua 5.4 support:

    luaZkopírovatUpravitlua54 'yes'
  2. This is necessary for compatibility with FiveM's encryption and modern Lua features.


Step 4: Add the Script to Your Server Config

  1. Open your server.cfg file located in the root directory of your server.

  2. Add the following line to ensure the script starts:

    plaintextZkopírovatUpravitensure ai-taxi

Step 5: Configure the Script

  1. Open the config.lua file in a text editor.

  2. Customize the settings to suit your server:

    • Framework Selection: Set your server's framework to ESX or QBCore.

    • Notification System: Choose between vms_notifyv2, okokNotify, or the default notification system.

    • NPC and Destination Locations: Modify or add NPC spawn locations and available destinations with their coordinates.

    • Pricing: Adjust the taxi fare prices per destination in the Config.TaxiPrices section.

    • Localization: Set the language to cz or en, or add custom translations in the Locales table.


Step 6: Start the Server

  1. Save all changes to the configuration files.

  2. Restart your FiveM server to load the script.

  3. Join the server and test the AI Taxi functionality.


Step 7: Testing

  • Interact with the predefined NPCs to call a taxi.

  • Verify the taxi arrives at the location and the menu displays available destinations.

  • Confirm the fare is deducted correctly and the AI taxi drives to the chosen destination.


Optional Customization

  • Cooldown Adjustments: Modify the Config.TaxiCooldown value to set the cooldown time between taxi calls (default: 60 seconds).

  • Notification Customization: Customize notification titles and colors in the Notify function within client.lua.


Support

If you encounter any issues or need further assistance, refer to the developer's support documentation or contact the script's support team. https://discord.gg/Fsha5ccYVa

Enjoy the AI Taxi experience! 🚕

Last updated