-- neverlose state Panel
-- coded by august#6530
local fonts = {
verdana = Render.InitFont("Verdana", 11, {'r'}),
}
local ui = {
StatePanel = Menu.SwitchColor("State Panel","Enable", false, Color.new(1,1,1,1)),
PanelText = Menu.TextBox("State Panel", "Panel Text", 64, "rework by august#6530"),
}
local UserName = Cheat.GetCheatUserName()
local ImageSize = Vector2.new(32, 32)
local GetImage = Http.Get("https://yougame.biz/data/avatars/o/541/541875.jpg?1656440727.jpg")
local ImageRender = Render.LoadImage(GetImage, ImageSize)
function Panel()
if not ui.StatePanel:Get() then return end
local get_screen = EngineClient.GetScreenSize()
local screen = {
x = get_screen.x / 2,
y = get_screen.y / 2,
}
local PanelText = ui.PanelText:Get()
local FontSize = Render.CalcTextSize("user: " ..UserName, 11, fonts.verdana)
-- text
Render.Text("from yougame.biz", Vector2.new(screen.x - 924, screen.y + 4.5), Color.new(1, 1, 1, 1), 11, fonts.verdana, true)
Render.Text("user: " ..UserName, Vector2.new(screen.x - 924, screen.y + 16), Color.new(1, 1, 1, 1), 11, fonts.verdana, true)
Render.Text("["..PanelText.."]" , Vector2.new(screen.x - 922 + FontSize.x, screen.y + 16), Color.new(ui.StatePanel:GetColor().r, ui.StatePanel:GetColor().g, ui.StatePanel:GetColor().b, ui.StatePanel:GetColor().a), 11, fonts.verdana, true)
-- panel
Render.Image(ImageRender, Vector2.new(screen.x - 960, screen.y + 2.5), ImageSize)
end
function draw()
local player_check = EntityList.GetLocalPlayer()
if player_check == nil then return end
local health = player_check:GetProp("m_iHealth")
if health > 0 then
Panel()
end
end
Cheat.RegisterCallback("draw", draw)