This commit is contained in:
Nordi98 2025-07-31 07:41:08 +02:00
parent 3279494318
commit 4f29316365
3 changed files with 53 additions and 26 deletions

View file

@ -1,4 +1,4 @@
local QBCore = exports['qb-core']:GetCoreObject()

local currentTaxi = nil
local currentDriver = nil
local taxiBlip = nil
@ -11,6 +11,22 @@ local taxiMeter = {
pricePerKm = 0
}


function DebugPrint(type, message)
if Config.Debug then
if type == "error" then
print("^1[TAXI DEBUG]^7 " .. message)
elseif type == "warning" then
print("^3[TAXI DEBUG]^7 " .. message)
else -- success/info
print("^2[TAXI DEBUG]^7 " .. message)
end
end
end

local QBCore = exports['qb-core']:GetCoreObject()
local currentTaxi = nil

DebugPrint("^2[TAXI DEBUG]^7 Main script loaded")

-- Taxi rufen Command
@ -1574,16 +1590,6 @@ AddEventHandler('onResourceStop', function(resourceName)
end
end)
function DebugPrint(type, message)
if Config.Debug then
if type == "error" then
print("^1[TAXI DEBUG]^7 " .. message)
elseif type == "warning" then
print("^3[TAXI DEBUG]^7 " .. message)
else -- success/info
print("^2[TAXI DEBUG]^7 " .. message)
end
end
end




View file

@ -2,6 +2,23 @@ local QBCore = exports['qb-core']:GetCoreObject()
local stationVehicles = {}
local stationBlips = {}

function DebugPrint(type, message)
if Config.Debug then
if type == "error" then
print("^1[TAXI STATIONS DEBUG]^7 " .. message)
elseif type == "warning" then
print("^3[TAXI STATIONS DEBUG]^7 " .. message)
else -- success/info
print("^2[TAXI STATIONS DEBUG]^7 " .. message)
end
end
end

local QBCore = exports['qb-core']:GetCoreObject()
local stationVehicles = {}



DebugPrint("^2[TAXI STATIONS DEBUG]^7 Stations script loaded")

-- Taxi Stationen initialisieren
@ -1571,17 +1588,7 @@ AddEventHandler('onResourceStop', function(resourceName)
end
end)

function DebugPrint(type, message)
if Config.Debug then
if type == "error" then
print("^1[TAXI DEBUG]^7 " .. message)
elseif type == "warning" then
print("^3[TAXI DEBUG]^7 " .. message)
else -- success/info
orint("^2[TAXI DEBUG]^7 " .. message)
end
end
end