JS-скрипт Пофиксите пожалуйста скрипт! onetap v4 кряк

Забаненный
Статус
Оффлайн
Регистрация
24 Окт 2021
Сообщения
100
Реакции[?]
2
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Нашел я вот значит такой скоп на в4 крякус
[IMG]

Скрипт работает, ну проблема в том что спамит в консоль это- [onetap] unable to find menu element [ General ]

[IMG]

Помогите пофиксить пожалуйста

код:
UI.AddSubTab(["Config", "SUBTAB_MGR"], "Custom scope");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Custom scope lines");

UI.AddColorPicker(["Config", "Custom scope", "Custom scope"], "Scope lines color");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Override FOV while scoped");

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines width", 0, 500);

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines offset", 0, 500);

function draw()

{

const local = Entity.GetLocalPlayer();



if (!Entity.IsAlive(local) || !World.GetServerString()) {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

return;

}



const fov = UI.GetValue(["Misc.", "View", "General", "Field of view"]);

const fovDifference = 90 - fov;

const fovScope = 90 + fovDifference;

const thirdperson = UI.GetValue(["Misc.", "Keys", "General", "Thirdperson"]);

const offset = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines offset"]);

const leng = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines width"]);

const accent = UI.GetColor(["Config", "Custom scope", "Custom scope", "Scope lines color"]);

const scoped = Entity.GetProp(local, "CCSPlayer", "m_bIsScoped");

const screen_size = Render.GetScreenSize();



if (!UI.GetValue(["Config", "Custom scope", "Custom scope", "Custom scope lines"]))

return;



if (scoped) {

Convar.SetFloat("r_drawvgui", 0);

if (!thirdperson) {

Convar.SetInt("fov_cs_debug", fovScope);

UI.SetValue(["Misc.", "View", "General", "Override FOV while scoped"], 0);

}

else {

UI.SetValue(["Misc.", "View", "General", "Override FOV while scoped"], UI.GetValue(["Config", "Custom scope", "Custom scope", "Override FOV while scoped"]) ? 0 : 1);



Convar.SetInt("fov_cs_debug", 0);

}

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 59);

Render.GradientRect(screen_size[0] / 2 + offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2 - leng - offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 + offset, 1, leng, 0, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 - leng - offset, 1, leng, 0, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

} else {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 63);

}

}



Cheat.RegisterCallback("Draw", "draw");
 
Начинающий
Статус
Оффлайн
Регистрация
29 Июн 2020
Сообщения
35
Реакции[?]
5
Поинты[?]
4K
JavaScript:
UI.AddSubTab(["Config", "SUBTAB_MGR"], "Custom scope");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Custom scope lines");

UI.AddColorPicker(["Config", "Custom scope", "Custom scope"], "Scope lines color");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Override FOV while scoped");

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines width", 0, 500);

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines offset", 0, 500);

function draw()

{

const local = Entity.GetLocalPlayer();



if (!Entity.IsAlive(local) || !World.GetServerString()) {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

return;

}



const fov = UI.GetValue(["Misc.", "View", "General", "Field of view"]);

const fovDifference = 90 - fov;

const fovScope = 90 + fovDifference;

const thirdperson = UI.GetValue(["Misc.", "View", "General", "Thirdperson"]);

const offset = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines offset"]);

const leng = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines width"]);

const accent = UI.GetColor(["Config", "Custom scope", "Custom scope", "Scope lines color"]);

const scoped = Entity.GetProp(local, "CCSPlayer", "m_bIsScoped");

const screen_size = Render.GetScreenSize();



if (!UI.GetValue(["Config", "Custom scope", "Custom scope", "Custom scope lines"]))

return;



if (scoped) {

Convar.SetFloat("r_drawvgui", 0);

if (!thirdperson) {

Convar.SetInt("fov_cs_debug", fovScope);

UI.SetValue(["Misc.", "View", "General", "Override FOV while scoped"], 0);

}

else {

UI.SetValue(["Misc.", "View", "General", "Override FOV while scoped"], UI.GetValue(["Config", "Custom scope", "Custom scope", "Override FOV while scoped"]) ? 0 : 1);



Convar.SetInt("fov_cs_debug", 0);

}

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 59);

Render.GradientRect(screen_size[0] / 2 + offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2 - leng - offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 + offset, 1, leng, 0, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 - leng - offset, 1, leng, 0, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

} else {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 63);

}

}



Cheat.RegisterCallback("Draw", "draw");
По идее должно работать
 
Забаненный
Статус
Оффлайн
Регистрация
24 Окт 2021
Сообщения
100
Реакции[?]
2
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
JavaScript:
UI.AddSubTab(["Config", "SUBTAB_MGR"], "Custom scope");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Custom scope lines");

UI.AddColorPicker(["Config", "Custom scope", "Custom scope"], "Scope lines color");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Override FOV while scoped");

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines width", 0, 500);

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines offset", 0, 500);

function draw()

{

const local = Entity.GetLocalPlayer();



if (!Entity.IsAlive(local) || !World.GetServerString()) {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

return;

}



const fov = UI.GetValue(["Misc.", "View", "General", "Field of view"]);

const fovDifference = 90 - fov;

const fovScope = 90 + fovDifference;

const thirdperson = UI.GetValue(["Misc.", "View", "General", "Thirdperson"]);

const offset = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines offset"]);

const leng = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines width"]);

const accent = UI.GetColor(["Config", "Custom scope", "Custom scope", "Scope lines color"]);

const scoped = Entity.GetProp(local, "CCSPlayer", "m_bIsScoped");

const screen_size = Render.GetScreenSize();



if (!UI.GetValue(["Config", "Custom scope", "Custom scope", "Custom scope lines"]))

return;



if (scoped) {

Convar.SetFloat("r_drawvgui", 0);

if (!thirdperson) {

Convar.SetInt("fov_cs_debug", fovScope);

UI.SetValue(["Misc.", "View", "General", "Override FOV while scoped"], 0);

}

else {

UI.SetValue(["Misc.", "View", "General", "Override FOV while scoped"], UI.GetValue(["Config", "Custom scope", "Custom scope", "Override FOV while scoped"]) ? 0 : 1);



Convar.SetInt("fov_cs_debug", 0);

}

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 59);

Render.GradientRect(screen_size[0] / 2 + offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2 - leng - offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 + offset, 1, leng, 0, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 - leng - offset, 1, leng, 0, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

} else {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 63);

}

}



Cheat.RegisterCallback("Draw", "draw");
По идее должно работать
-
 
Начинающий
Статус
Оффлайн
Регистрация
5 Авг 2021
Сообщения
10
Реакции[?]
0
Поинты[?]
0
JavaScript:
UI.AddSubTab(["Config", "SUBTAB_MGR"], "Custom scope");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Custom scope lines");

UI.AddColorPicker(["Config", "Custom scope", "Custom scope"], "Scope lines color");

UI.AddCheckbox(["Config", "Custom scope", "Custom scope"], "Override FOV while scoped");

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines width", 0, 500);

UI.AddSliderInt(["Config", "Custom scope", "Custom scope"], "Scope lines offset", 0, 500);

function draw()

{

const local = Entity.GetLocalPlayer();



if (!Entity.IsAlive(local) || !World.GetServerString()) {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

return;

}



const fov = UI.GetValue(["Misc.", "View", "Camera", "Field of view"]);

const fovDifference = 90 - fov;

const fovScope = 90 + fovDifference;

const thirdperson = UI.GetValue(["Misc.", "Keys", "Key assignment", "Thirdperson"]);

const offset = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines offset"]);

const leng = UI.GetValue(["Config", "Custom scope", "Custom scope", "Scope lines width"]);

const accent = UI.GetColor(["Config", "Custom scope", "Custom scope", "Scope lines color"]);

const scoped = Entity.GetProp(local, "CCSPlayer", "m_bIsScoped");

const screen_size = Render.GetScreenSize();



if (!UI.GetValue(["Config", "Custom scope", "Custom scope", "Custom scope lines"]))

return;



if (scoped) {

Convar.SetFloat("r_drawvgui", 0);

if (!thirdperson) {

Convar.SetInt("fov_cs_debug", fovScope);

UI.SetValue(["Misc.", "View", "Camera", "Override FOV while scoped"], 0);

}

else {

UI.SetValue(["Misc.", "View", "Camera", "Override FOV while scoped"], UI.GetValue(["Config", "Custom scope", "Custom scope", "Override FOV while scoped"]) ? 0 : 1);



Convar.SetInt("fov_cs_debug", 0);

}

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 59);

Render.GradientRect(screen_size[0] / 2 + offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2 - leng - offset, screen_size[1] / 2, leng, 1, 1, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 + offset, 1, leng, 0, [accent[0], accent[1], accent[2], accent[3]], [accent[0], accent[1], accent[2], 0]);

Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 - leng - offset, 1, leng, 0, [accent[0], accent[1], accent[2], 0], [accent[0], accent[1], accent[2], accent[3]]);

} else {

Convar.SetFloat("r_drawvgui", 1);

Convar.SetInt("fov_cs_debug", 0);

UI.SetValue(["Visuals", "Extra", "Removals", "Removals"], 63);

}

}



Cheat.RegisterCallback("Draw", "draw");
вот пофиксил я вам, не спамит теперь в консоль, не благодарите
 
Сверху Снизу