Skip to content

Commit

Permalink
Merge pull request #18 from Maximus7474/zone-fixes
Browse files Browse the repository at this point in the history
Zone fixes
  • Loading branch information
Maximus7474 authored Aug 12, 2024
2 parents 1118f35 + d8730a0 commit b329d52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ RegisterNUICallback('setNewFloor', function(data, cb)
SetTimeout(success and 250 or 500, function ()
isMoving = false
NUI.ToggleNui(false)
State.UIOpen = false
end)
else
isMoving = false
State.UIOpen = false
end
end)
3 changes: 2 additions & 1 deletion client/zones.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ local resourceName = GetCurrentResourceName()
for elevator, data in pairs(Config.Elevators) do
Zones[elevator] = {}
for _, v in pairs(data.floors) do
Zones[elevator][#Zones[elevator]+1] = TARGET.AddSphereZone(v.panel, Config.Options.Label, { floor = v.floor, elevator = elevator }, data.vehicle, Config.Options.Icon)
local coords = vector3(v.position.x, v.position.y, v.panel.z)
Zones[elevator][#Zones[elevator]+1] = TARGET.AddSphereZone(coords, Config.Options.Label, { floor = v.floor, elevator = elevator }, data.vehicle, Config.Options.Icon)
end
end

Expand Down

0 comments on commit b329d52

Please sign in to comment.