ui = {
spread_circle = Menu.SwitchColor("Visuals", "Spread Circle", false, Color.RGBA(0, 0, 0, 50)),
}
Cheat.RegisterCallback("draw", function()
local me = EntityList.GetLocalPlayer()
if me == nil then return end
local lp = EntityList.GetClientEntity(EngineClient.GetLocalPlayer())
if lp == nil then return end
if EngineClient.IsConnected() and EngineClient.IsInGame() and lp:GetProp("m_iHealth") > 0 and lp:GetPlayer() ~= nil then
local weap = me:GetActiveWeapon()
local accuracy = 0.0;
if weap ~= nil then
accuracy = weap:GetInaccuracy(weap) * 550.0;
if ui.spread_circle:GetBool() then
Render.CircleFilled(Vector2.new(EngineClient.GetScreenSize().x / 2, EngineClient.GetScreenSize().y / 2), accuracy, 60, ui.spread_circle:GetColor())
end
else
accuracy = 0.0
end
end
end)