From 3ee1aafe2690aa57bcfc5c6e5c535e88acc20bd8 Mon Sep 17 00:00:00 2001 From: faizy <46767055+itsfaizy@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:02:31 -0400 Subject: [PATCH] Update zones.lua --- client/zones.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/zones.lua b/client/zones.lua index fd0da1cf..7be9db18 100644 --- a/client/zones.lua +++ b/client/zones.lua @@ -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,