mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-09 16:13:56 +00:00
fix(client/zoneCreator): require input confirmation
This commit is contained in:
1 parent
d070c631b4
commit
310b9720bc
1 file changed
+4
-2
@@ -60,7 +60,7 @@ local function closeCreator(cancel)
|
||||
points[#points + 1] = vec(xCoord, yCoord)
|
||||
end
|
||||
|
||||
---@type string[]
|
||||
---@type string[]?
|
||||
local input = lib.inputDialog(('Name your %s Zone'):format(firstToUpper(zoneType)), {
|
||||
{ type = 'input', label = 'Name', placeholder = 'none' },
|
||||
{ type = 'select', label = 'Format', default = format, options = {
|
||||
@@ -68,7 +68,9 @@ local function closeCreator(cancel)
|
||||
{ value = 'array', label = 'Array' },
|
||||
{ value = 'target', label = 'Target'},
|
||||
}}
|
||||
}) or {}
|
||||
})
|
||||
|
||||
if not input then return end
|
||||
|
||||
format = input[2]
|
||||
|
||||
|
||||
Reference in new issue
Block a user