From 15e95f876e51bee0696f0cf2fcd7108dec16739f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20N=27gadi?= Date: Tue, 22 Aug 2017 18:16:05 +0200 Subject: [PATCH] Fix taxi crash (hopefully) and increase wait timeout --- client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index 97148191..b7369919 100644 --- a/client/main.lua +++ b/client/main.lua @@ -472,7 +472,7 @@ Citizen.CreateThread(function() if IsPedInAnyVehicle(playerPed, false) and GetEntitySpeed(playerPed) > 0 then - local waitUntil = GetGameTimer() + GetRandomIntInRange(1000, 30000) + local waitUntil = GetGameTimer() + GetRandomIntInRange(30000, 45000) while OnJob and waitUntil > GetGameTimer() do Citizen.Wait(0) @@ -490,7 +490,7 @@ Citizen.CreateThread(function() end - if DoesEntityExist(ped) then + if DoesEntityExist(CurrentCustomer) then CurrentCustomerBlip = AddBlipForEntity(CurrentCustomer)