Config

-- config.lua

Config = {}

-- Select the framework: 'ESX' or 'QBCore'
Config.Framework = 'ESX' -- Change to 'QBCore' if using QBCore

-- Select the notification system: 'vms_notifyv2', 'okokNotify', or 'default'
Config.NotificationSystem = 'vms_notifyv2' -- Change to 'okokNotify' or 'default'

-- Select the locale for translations
Config.Locale = 'cz' -- Change to 'en' for English translations

-- Cooldown for calling a taxi (in milliseconds, minimum 60 seconds)
Config.TaxiCooldown = 60000 -- Minimum value is 60 seconds

-- NPC locations where players can call a taxi and their respective spawn, arrival, and deletion locations
Config.NPCLocations = {
    {
        label = "Airport",
        npcCoords = { x = -1033.5194, y = -2501.4648, z = 20.1693 },
        taxiSpawnLocation = { x = -848.9037, y = -2237.6348, z = 17.7387, heading = 137.9252 },
        taxiArrivalLocation = { x = -1030.5667, y = -2501.5723, z = 20.0831 },
    },
    {
        label = "Vespucci Police",
        npcCoords = { x = -1129.1049, y = -820.2534, z = 15.8362 },
        taxiSpawnLocation = { x = -1125.5394, y = -767.6273, z = 18.6375, heading = 107.6359 },
        taxiArrivalLocation = { x = -1127.1730, y = -816.9787, z = 15.9494 },
    },
    {
        label = "Hospital",
        npcCoords = { x = 13.9375, y = -418.4167, z = 39.3390 },
        taxiSpawnLocation = { x = -11.9008, y = -301.7795, z = 45.8099, heading = 249.7046 },
        taxiArrivalLocation = { x = 11.1397, y = -423.3116, z = 39.2776 },
    },
    {
        label = "Downtown",
        npcCoords = { x = 195.1953, y = -1016.7100, z = 29.3611 },
        taxiSpawnLocation = { x = 347.6604, y = -1102.9189, z = 29.4174, heading = 180.6624 },
        taxiArrivalLocation = { x = 191.6042, y = -1018.7000, z = 29.3097 },
    }
}

-- Locations where the taxi can drop the player off
Config.DestinationLocations = {
    { label = "Police Station", x = -1127.1730, y = -816.9787, z = 15.9494 },
    { label = "Hospital", x = 28.4300, y = -428.8367, z = 39.2776 },
    { label = "Airport", x = -1030.5667, y = -2501.5723, z = 20.0831 },
    { label = "Downtown", x = 191.6042, y = -1018.7000, z = 29.3097 }
}

-- Taxi fares for each location
Config.TaxiPrices = {
    [1] = { -- Location 1 (Airport)
        ["Police Station"] = 150,
        ["Hospital"] = 300,
        ["Downtown"] = 200,
        ["Airport"] = 0
    },
    [2] = { -- Location 2 (Vespucci Police)
        ["Police Station"] = 0,
        ["Hospital"] = 100,
        ["Downtown"] = 200,
        ["Airport"] = 300
    },
    [3] = { -- Location 3 (Hospital)
        ["Police Station"] = 100,
        ["Hospital"] = 0,
        ["Downtown"] = 200,
        ["Airport"] = 300
    },
    [4] = { -- Location 4 (Downtown)
        ["Police Station"] = 100,
        ["Hospital"] = 150,
        ["Downtown"] = 0,
        ["Airport"] = 300
    }
}

Last updated