mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fix taxi crash (hopefully) and increase wait timeout
This commit is contained in:
+2
-2
@@ -472,7 +472,7 @@ Citizen.CreateThread(function()
|
|||||||
|
|
||||||
if IsPedInAnyVehicle(playerPed, false) and GetEntitySpeed(playerPed) > 0 then
|
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
|
while OnJob and waitUntil > GetGameTimer() do
|
||||||
Citizen.Wait(0)
|
Citizen.Wait(0)
|
||||||
@@ -490,7 +490,7 @@ Citizen.CreateThread(function()
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if DoesEntityExist(ped) then
|
if DoesEntityExist(CurrentCustomer) then
|
||||||
|
|
||||||
CurrentCustomerBlip = AddBlipForEntity(CurrentCustomer)
|
CurrentCustomerBlip = AddBlipForEntity(CurrentCustomer)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user