Helicopter fix #2

This commit is contained in:
Jérémie N'gadi
2017-08-31 13:28:25 +02:00
parent 6ec8490fc5
commit 0c33748f9d
+1 -2
View File
@@ -954,9 +954,8 @@ AddEventHandler('esx_policejob:hasEnteredMarker', function(station, part, partNu
if part == 'HelicopterSpawner' then
local helicopters = Config.PoliceStations[station].Helicopters
local vehicle = GetClosestVehicle(helicopters[partNum].SpawnPoint.x, helicopters[partNum].SpawnPoint.y, helicopters[partNum].SpawnPoint.z, 3.0, 0, 71)
if not DoesEntityExist(vehicle) then
if not IsAnyVehicleNearPoint(helicopters[partNum].SpawnPoint.x, helicopters[partNum].SpawnPoint.y, helicopters[partNum].SpawnPoint.z, 3.0) then
ESX.Game.SpawnVehicle('polmav', {
x = helicopters[partNum].SpawnPoint.x,