forked from Simnation/Main
Update main.lua
This commit is contained in:
parent
27eb88ac1d
commit
ac7a7489e3
1 changed files with 4 additions and 3 deletions
|
@ -678,7 +678,7 @@ function DespawnTaxi()
|
||||||
if destinationBlip then
|
if destinationBlip then
|
||||||
RemoveBlip(destinationBlip)
|
RemoveBlip(destinationBlip)
|
||||||
destinationBlip = nil
|
destinationBlip = nil
|
||||||
|
end
|
||||||
|
|
||||||
-- Nach 10 Sekunden tatsächlich löschen
|
-- Nach 10 Sekunden tatsächlich löschen
|
||||||
SetTimeout(10000, function()
|
SetTimeout(10000, function()
|
||||||
|
@ -709,7 +709,7 @@ function DespawnTaxi()
|
||||||
if destinationBlip then
|
if destinationBlip then
|
||||||
RemoveBlip(destinationBlip)
|
RemoveBlip(destinationBlip)
|
||||||
destinationBlip = nil
|
destinationBlip = nil
|
||||||
}
|
end
|
||||||
|
|
||||||
-- Taxi löschen
|
-- Taxi löschen
|
||||||
if currentTaxi and DoesEntityExist(currentTaxi) then
|
if currentTaxi and DoesEntityExist(currentTaxi) then
|
||||||
|
@ -721,7 +721,8 @@ function DespawnTaxi()
|
||||||
|
|
||||||
print("^2[TAXI DEBUG]^7 Taxi despawn completed (no driver)")
|
print("^2[TAXI DEBUG]^7 Taxi despawn completed (no driver)")
|
||||||
end
|
end
|
||||||
}
|
end
|
||||||
|
|
||||||
|
|
||||||
function CalculateDistanceToCoords(coords)
|
function CalculateDistanceToCoords(coords)
|
||||||
local playerCoords = GetEntityCoords(PlayerPedId())
|
local playerCoords = GetEntityCoords(PlayerPedId())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue