mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-27 21:04:45 +00:00
fix(zones): trigger onExit when teleporting away from zones (#732)
This commit is contained in:
1 parent
7efcc5c92d
commit
f5396edc78
1 file changed
+4
@@ -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