From 8cbfc70b00fd961147b9042a78a16ce3c7b67c81 Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Wed, 30 Jul 2025 06:11:59 +0200 Subject: [PATCH] Update main.lua --- resources/[tools]/nordi_taxi/client/main.lua | 22 ++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/resources/[tools]/nordi_taxi/client/main.lua b/resources/[tools]/nordi_taxi/client/main.lua index 31af289df..8861b4a85 100644 --- a/resources/[tools]/nordi_taxi/client/main.lua +++ b/resources/[tools]/nordi_taxi/client/main.lua @@ -468,10 +468,24 @@ function MonitorTaxiProgress(taxi, driver, playerCoords) while DoesEntityExist(taxi) and DoesEntityExist(driver) do Wait(3000) - -- Check if taxi exists and is moving - if not DoesEntityExist(taxi) or not DoesEntityExist(driver) then - print("^1[TAXI DEBUG]^7 Taxi or driver no longer exists") - return + if not DoesEntityExist(taxi) then + print("^1[TAXI DEBUG]^7 Taxi no longer exists! Taxi ID: " .. tostring(taxi)) + if currentTaxi == taxi then + print("^1[TAXI DEBUG]^7 This was the current active taxi") + else + print("^1[TAXI DEBUG]^7 This was NOT the current active taxi. Current taxi: " .. tostring(currentTaxi)) + end + return + end + + if not DoesEntityExist(driver) then + print("^1[TAXI DEBUG]^7 Driver no longer exists! Driver ID: " .. tostring(driver)) + if currentDriver == driver then + print("^1[TAXI DEBUG]^7 This was the current active driver") + else + print("^1[TAXI DEBUG]^7 This was NOT the current active driver. Current driver: " .. tostring(currentDriver)) + end + return end local currentPos = GetEntityCoords(taxi)