-
Автор темы
- #1
Почему не работает?
JavaScript:
UI.AddDropdown('Check', ['Zero', 'One', 'Two'])
function GetScriptOption(name)
{
var Value = UI.GetValue('Misc', 'JAVASCRIPT', 'Script Items', name)
return Value
}
function Zero()
{
if (GetScriptOption('Check') == 0) return
const font = Render.AddFont('Verdana', 6, 0)
var screen_size = Global.GetScreenSize()
var x = screen_size[0] /2
var y = screen_size[1] /2
Render.StringCustom(x, y, 0, 'Zero', [255, 255, 255, 255], font)
}
function One()
{
if (GetScriptOption('Check') == 1) return
const font = Render.AddFont('Verdana', 6, 0)
var screen_size = Global.GetScreenSize()
var x = screen_size[0] /2
var y = screen_size[1] /2
Render.StringCustom(x, y, 0, 'One', [255, 255, 255, 255], font)
}
function Two()
{
if (GetScriptOption('Check') == 2) return
const font = Render.AddFont('Verdana', 6, 0)
var screen_size = Global.GetScreenSize()
var x = screen_size[0] /2
var y = screen_size[1] /2
Render.StringCustom(x, y, 0, 'Two', [255, 255, 255, 255], font)
}
Cheat.RegisterCallback('createMove', 'Two')
Cheat.RegisterCallback('createMove', 'One')
Cheat.RegisterCallback('createMove', 'Zero')