- 12
- 36
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
библиотека для вывода иконок оружия в мимгуи
автор: @Corenale
weapon icons:
local gtasaweapons = require("gtasaweapons")
local imgui = require("mimgui")
imgui.OnInitialize(function()
imgui.GetIO().IniFilename = nil
imgui.GetIO().MouseDrawCursor = true
local config = imgui.ImFontConfig()
config.MergeMode = true
config.PixelSnapH = true
local iconRanges = imgui.new.ImWchar[3](gtasaweapons.min_range, gtasaweapons.max_range, 0)
imgui.GetIO().Fonts:AddFontFromMemoryCompressedBase85TTF(gtasaweapons.get_font_data_base85(), 20, config, iconRanges)
imgui.GetStyle().MouseCursorScale = 0.0
end)
imgui.OnFrame(
function()
return isSampAvailable()
end,
function()
imgui.Begin("example", nil, imgui.WindowFlags.AlwaysAutoResize + imgui.WindowFlags.NoResize)
imgui.Text("example: " .. gtasaweapons[24])
imgui.End()
end
)
автор: @Corenale