mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56: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)
|
||||
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