mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(zones): trigger onExit when teleporting away from zones (#732)
This commit is contained in:
@@ -137,6 +137,10 @@ CreateThread(function()
|
|||||||
if not contains then
|
if not contains then
|
||||||
zone.insideZone = false
|
zone.insideZone = false
|
||||||
insideZones[zone.id] = nil
|
insideZones[zone.id] = nil
|
||||||
|
|
||||||
|
if zone.onExit then
|
||||||
|
exitingZones:push(zone)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user