I call it from a Geyser.Label like: JB1:setClickCallback(UI.jobbar.c[1], UI.jobbar.arg[1])
So that means the name is UI.jobbar.arg[1], while the botloop should be nil because it's not given.
But there is a table sent to the function bot.start as the second arg:
Code: Select all
{
y = 17,
x = 12,
globalX = 1302,
buttons = {
"LeftButton"
},
button = "LeftButton",
globalY = 447
}