diff --git a/resource/zone creator/client.lua b/resource/zoneCreator/client.lua similarity index 97% rename from resource/zone creator/client.lua rename to resource/zoneCreator/client.lua index cf69ad8..edecb5f 100644 --- a/resource/zone creator/client.lua +++ b/resource/zoneCreator/client.lua @@ -68,7 +68,7 @@ RegisterCommand('zone', function(source, args, rawCommand) startCreator(args[1]) end end -end) +end, true) local function closeCreator(cancel) if not cancel then @@ -76,7 +76,7 @@ local function closeCreator(cancel) points[#points + 1] = vec(xCoord, yCoord) end - lib.inputDialog(('Name your %s Zone'):format(firstToUpper(zoneType)), {'Name'}) + local name = lib.inputDialog(('Name your %s Zone'):format(firstToUpper(zoneType)), {'Name'}) TriggerServerEvent('ox_lib:saveZone', { zoneType = zoneType, @@ -94,7 +94,7 @@ local function closeCreator(cancel) creatorActive = false controlsActive = false - lib.hideTextUI(true) + lib.hideTextUI() zoneType = nil end @@ -221,7 +221,7 @@ CreateThread(function() elseif IsDisabledControlJustPressed(0, 22) then -- space change = true if zoneType == 'poly' then - points[#points + 1] = vec(xCoord, yCoord) + points[#points + 1] = vec2(xCoord, yCoord) end local coords = GetEntityCoords(cache.ped) diff --git a/resource/zone creator/server.lua b/resource/zoneCreator/server.lua similarity index 100% rename from resource/zone creator/server.lua rename to resource/zoneCreator/server.lua