Fix taxi crash (hopefully) and increase wait timeout

This commit is contained in:
Jérémie N'gadi
2017-08-22 18:16:05 +02:00
parent 97f4d41ee8
commit 15e95f876e
+2 -2
View File
@@ -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)