Памагите
-
Автор темы
- #1
JavaScript:
ui.add_checkbox('INDICATORS', 'indicators')
const indicator1 = {
indicators: function() {
var ind = vars.get_int("js.indicators")
if(ind){
// RGB - BGR
var on = [255, 92, 119, 255];
var off = [255, 255, 255, 255];
var off2 = [255, 92, 119, 255];
var size = render.get_screen_size();
var baim = [(size[0] / 2) - 15, (size[1] / 2) + 35]
var dt = [(size[0] / 2) - 29, (size[1] / 2) + 11]
var od = [(size[0] / 2) - 12, (size[1] / 2) + 48]
var hs = [(size[0] / 2) - 25, (size[1] / 2) + 24]
var manualr = [(size[0] / 2) - -35, (size[1] / 2) + 11]
var manuall = [(size[0] / 2) - 37, (size[1] / 2) + 11]
if (vars.is_bind_active('body_aim')) {
render.text(baim, on, 1, 2, "BODY" );
} else {
render.text(baim, off, 1, 2, "BODY");
}
if (vars.is_bind_active('doubletap')) {
render.text(dt, on, 1, 2, "DOUBLETAP");
} else {
render.text(dt, off, 1, 2, "DOUBLETAP");
}
if (vars.is_bind_active('override_damage')) {
render.text(od, on, 1, 1, "DMG");
} else {
render.text(od, off, 1, 1, "DMG");
}
if (vars.is_bind_active('hide_shots')) {
render.text(hs, on, 1, 1, "HIDE SHOTS");
} else {
render.text(hs, off, 1, 1, "HIDE SHOTS");
}
if (vars.is_bind_active('manual_right')) {
render.text(manualr, off2, 1, 2, ">" );
} else {
render.text(manualr, off, 1, 2, ">" );
}
if (vars.is_bind_active('manual_left')) {
render.text(manuall, off2, 1, 2, "<" );
} else {
render.text(manuall, off, 1, 2, "<" );
}
}
}
}
register_callback("render", indicator1.indicators);