CEOC = menu.add_submenu("CEO Crates (debug)")
local isRunning = false
local notStopped = true
local function cratesLoop(isRunning)
PlayerIndex = globals.get_int(1312763)
if PlayerIndex == 0 then
mpx = "MP0_"
else
mpx = "MP1_"
end
while (isRunning and notStopped) do
for i = 12, 16
do stats.set_bool_masked(mpx.."FIXERPSTAT_BOOL1", true, i, mpx)
end
sleep(0.2)
end
end
CEOC:add_action("Get crates (loop)", function()
isRunning = not isRunning
notStopped = true
cratesLoop(isRunning)
end)
CEOC:add_action("End loop", function()
notStopped = false
end)