if (Menu::Window.MiscTab.OtherLBY.GetState())
{
RECT scrn = Render::GetViewport();
RECT TextSize = Render::GetTextSize(Render::Fonts::ESP, "LBY");
if (hackManager.pLocal()->GetVelocity().Length() > 0)
Render::Text(scrn.left - TextSize.left - 20, 30, Color(0, 255, 0, 255), Render::Fonts::MenuBold, "LBY");
else
Render::Text(scrn.left - TextSize.left - 20, 30, Color(255, 0, 0, 255), Render::Fonts::MenuBold, "LBY");
}
Thank you but it doesnt seem to work really well my code looks like this
In esp.cpp
if(Menu::Window.VisualsTab.LBYindicator.GetState() && pEntity->IsDefusing())
{
RECT scrn = Render::GetViewport();
RECT TextSize = Render::GetTextSize(Render::Fonts::ESP, "LBY");
if (hackManager.pLocal()->GetVelocity().Length() > 0)
Render::Text(scrn.left - TextSize.left - 20, 30, Color(0, 255, 0, 255), Render::Fonts::MenuBold, "LBY");
else
Render::Text(scrn.left - TextSize.left - 20, 30, Color(255, 0, 0, 255), Render::Fonts::MenuBold, "LBY");
Info.push_back("Has Defuser");
}
And in Menu.cpp
IsDefusing.SetFileId("opt_LBY");
OptionsGroup.PlaceLabledControl("LBY Indicator", this, &IsDefusing);
Why can't i change those IsDefusing Those gives me error if i change, And i think that's the problem becouse my indicator wont popup