if imgui.Button(u8'Изменить положение', imgui.ImVec2(-1, 30)) then
lua_thread.create(function()
checkCursor = true
renderWidget[0] = true
renderWindow[0] = false
sampSetCursorMode(4)
while checkCursor do
local cX, cY = getCursorPos()
posX, posY = cX, cY
if isKeyDown(vkeys.VK_LBUTTON) then
sampSetCursorMode(0)
mainIni.pos.x, mainIni.pos.y = posX, posY
checkCursor = false
renderWindow[0] = true
renderWidget[0] = false
ini.save(mainIni, '123123.ini')
end
wait(0)
end
end)
end