DedPoet Участник Автор темы 98 18 22 Май 2022 #1 https://imgur.com/u5k0o4x Реально ли добавить по переменным, новую кнопку в имгуи окне?
chapo tg/inst: @moujeek Всефорумный модератор 9,117 12,211 22 Май 2022 #2 Lua: local buttons = { u8'Привет!', u8'Пошел нахуй' } for _, text in ipairs(buttons) do if imgui.Button(text) then sampAddChatMessage(text, -1) end end Реакции: 3211Marlon1123 и _razor Позитивный голос 0 Негативный голос
Lua: local buttons = { u8'Привет!', u8'Пошел нахуй' } for _, text in ipairs(buttons) do if imgui.Button(text) then sampAddChatMessage(text, -1) end end