-
Автор темы
- #1
Не работает оффсет незнаю почему, прошу помочь а не ебать мозги что я слепой
Код:
local font = render.create_font("Calibri", 28, 800, bit.bor(font_flags.antialias))
local g_Render = {}
local count = 0
local additonal_y = 0
local screen_width, screen_height = render.get_screen( );
local center_x = ( screen_width / 2 );
local center_y = ( screen_height / 2);
local keys = {
hide_shots = ui.get("Rage", "Exploits", "General", "Hide shots key"),
fakeducking = ui.get("Rage", "Anti-aim", "Fake-lag", "Fake duck key"),
double_tap = ui.get("Rage", "Exploits", "General", "Double tap key"),
dmg = ui.get_rage("General", "Minimum damage override key"),
ping = ui.get("Misc", "General", "General", "Ping spike key"),
force_bodyaim = ui.get("Rage", "Aimbot", "Accuracy", "Force body-aim"),
}
local select = ui.add_multi_dropdown("500$ Indicators", {"Hide shots", "Fake duck", "Double tap", "Min damage", "Ping", "Force body-aim", "LC"})
function g_Render:get_dmg(var)
local minimum_damage = var:get();
if minimum_damage == 0 then
return "auto";
elseif minimum_damage > 100 then
return string.format("10%d", minimum_damage - 100);
else
return tostring(minimum_damage);
end
end
function g_Render:add(text, color)
local size = render.get_text_size(text)
local text_height = font:get_size(text);
local y = center_y + ( count * text_height ) + additonal_y + 60;
render.gradient(11, screen_height - 340 - 37+ count - 6, math.floor(size / 2), 33, color.new(0, 0, 0, 5), color.new(0, 0, 0, 180), true)
render.gradient(11 + math.floor(size / 2), screen_height - 340 - 37 + count - 6, math.floor(size / 2), 33, color.new(0, 0, 0, 180), color.new(0, 0, 0, 5), true)
font:text(16 + 1, screen_height - 344 - 37 + count + 1, color.new(0, 0, 0, 200), text)
font:text(16, screen_height - 344 - 37 + count, color, text)
count = count + 1
end
function g_Render:indicators()
if not client.is_alive() then
return
end;
if select:get("Hide shots") and keys.hide_shots:get_key() then
g_Render:add("ONSHOT", color.new(132, 195, 16, 255))
end;
if select:get("Fake duck") and keys.fakeducking:get_key() then
g_Render:add("DUCK", color.new(210, 210, 210, 255))
end;
if select:get("Double tap") and keys.double_tap:get_key() then
g_Render:add("DT", not exploits.charging() and color.new(210, 210, 210, 255) or color.new(255, 0, 0, 255))
end;
if select:get("Min damage") and keys.dmg:get_key() then
local is_overriding = ui.get_rage("General", "Minimum damage override")
local v = g_Render:get_dmg(is_overriding);
g_Render:add(("Damage: %s"):format(v), color.new(210, 210, 210, 255))
end;
if select:get("Ping") and keys.ping:get_key() then
g_Render:add("PING", color.new(132, 195, 16, 255))
end;
if select:get("Force body-aim") and keys.ping:get_key() then
g_Render:add("FS", color.new(132, 195, 16, 255))
end;
if select:get("LC") and bit.band(bit.lshift(1, 1)) ~= 0 then
g_Render:add("LC", color.new(132, 195, 16, 255))
end
end
callbacks.register("paint", function()
g_Render:indicators()
end)