Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/zones.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ local function SetupZone(store, onEnter, onExit)
end

if Config.UseRadialMenu or store.usePoly then
if not store.points or not next(store.points) then
return lib.zones.box({
coords = store.coords,
size = store.size,
rotation = store.rotation,
debug = Config.Debug,
onEnter = onEnter,
onExit = onExit
})
end
return lib.zones.poly({
points = store.points,
debug = Config.Debug,
Expand Down