viewing paste ceo crates (debug) | Lua

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
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)
Viewed 637 times, submitted by mumbles.