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