local imgui = require 'mimgui'
local faicons = require('fAwesome6')
local WinState = imgui.new.bool()
imgui.OnFrame(function() return WinState[0] end, function()
imgui.SetNextWindowPos(imgui.ImVec2(500,500), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(250,300), imgui.Cond.FirstUseEver)
imgui.Begin('##Window', WinState)
imgui.Button(faicons('user'),imgui.ImVec2(24,24))
imgui.Button(faicons('star'),imgui.ImVec2(24,24))
imgui.Button(faicons('gun'),imgui.ImVec2(24,24))
imgui.Button(faicons('heart'),imgui.ImVec2(24,24))
imgui.End()
end)
function main()
sampRegisterChatCommand('cmdd', function()
WinState[0] = not WinState[0]
end)
wait(-1)
end
imgui.OnInitialize(function()
imgui.GetIO().IniFilename = nil
local config = imgui.ImFontConfig()
config.MergeMode = true
config.PixelSnapH = true
iconRanges = imgui.new.ImWchar[3](faicons.min_range, faicons.max_range, 0)
imgui.GetIO().Fonts:AddFontFromMemoryCompressedBase85TTF(faicons.get_font_data_base85('solid'), 14, config, iconRanges) -- solid - тип иконок, так же есть thin, regular, light и duotone
end)