mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Better zone detection
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user