local post = imgui.ImInt(cfg.posti.post)
if imgui.Combo(u8'Пост', post, {u8'Не выбрано', u8'Крыша хлева', u8'Поле', u8'Теплица', u8'Подвал'}, 5) then
if post.v == 0 then
cfg.posti.post = post.v
inicfg.save(cfg, 'FPD_SCRIPT.ini')
elseif post.v == 1 then
cfg.posti.post = post.v
inicfg.save(cfg, 'FPD_SCRIPT.ini')
elseif post.v == 2 then
cfg.posti.post = post.v
inicfg.save(cfg, 'FPD_SCRIPT.ini')
elseif post.v == 3 then
cfg.posti.post = post.v
inicfg.save(cfg, 'FPD_SCRIPT.ini')
elseif post.v == 4 then
cfg.posti.post = post.v
inicfg.save(cfg, 'FPD_SCRIPT.ini')
end
end
if isKeyDown(VK_X) and isKeyJustPressed(VK_0) then
sampAddChatMessage('/f ' .. u8:decode(cfg.settings.ftag) .. ' Заступаю на пост "' .. cfg.posti.post, -1)
end