Как добавить в imgui хп и армор?

Hader

Потрачен
Автор темы
32
1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Версия MoonLoader
.026-beta
Как добавить в imgui хп и армор?
 

qdIbp

Автор темы
Проверенный
1,450
1,191
Lua:
local key = require 'vkeys'
local imgui = require 'imgui'

local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8

local main_window_state = imgui.ImBool(false)
function imgui.OnDrawFrame()
    if main_window_state.v then
        imgui.SetNextWindowSize(imgui.ImVec2(150, 200), imgui.Cond.FirstUseEver) -- меняем размер
        imgui.Begin('My window', main_window_state)
            imgui.Text('hp  '..getCharHealth(playerPed)..'\nArmor '..getCharArmour(playerPed))
    
        imgui.End()
    end
end

function main()
    while true do wait(0)
        if wasKeyPressed(key.VK_X) then main_window_state.v = not main_window_state.v end
        imgui.Process = main_window_state.v
    end
end