mirror of
https://github.com/UltimateMenu/UltimateMenu.git
synced 2025-09-19 20:26:35 +08:00
Merge pull request #4 from ezeholz/patch-1
Fix infinite loop in Nightclub Money Loop
This commit is contained in:
@ -10071,8 +10071,8 @@ L7NEGML = L7NEG7:add_submenu("Nighclub Money Loop 250k/10s")
|
|||||||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
local isRunning = false
|
local isRunning = false
|
||||||
local function safeLoop(state)
|
local function safeLoop()
|
||||||
while state do
|
while isRunning do
|
||||||
stats.set_int(MPX .. "CLUB_POPULARITY", 1000)
|
stats.set_int(MPX .. "CLUB_POPULARITY", 1000)
|
||||||
stats.set_int(MPX .. "CLUB_PAY_TIME_LEFT", -1)
|
stats.set_int(MPX .. "CLUB_PAY_TIME_LEFT", -1)
|
||||||
sleep(1.5)
|
sleep(1.5)
|
||||||
@ -10098,7 +10098,7 @@ L7NEGML:add_toggle(
|
|||||||
end,
|
end,
|
||||||
function()
|
function()
|
||||||
isRunning = not isRunning
|
isRunning = not isRunning
|
||||||
safeLoop(isRunning)
|
safeLoop()
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user