Better zone detection

This commit is contained in:
Jérémie N'gadi
2017-08-05 14:22:51 +02:00
parent 6d943080d3
commit f769e84a67
+2 -2
View File
@@ -338,9 +338,9 @@ Citizen.CreateThread(function()
end
if isInMarker and not HasAlreadyEnteredMarker or (isInMarker and (LastGarage ~= currentGarage or LastPart ~= currentPart) ) then
if isInMarker and not HasAlreadyEnteredMarker or (isInMarker and (LastGarage ~= currentGarage or LastPart ~= currentPart or LastParking ~= currentParking) ) then
if LastGarage ~= currentGarage or LastPart ~= currentPart then
if LastGarage ~= currentGarage or LastPart ~= currentPart or LastParking ~= currentParking then
TriggerEvent('esx_property:hasExitedMarker', LastGarage, LastPart, LastParking)
end