Fix infinite loop in Nightclub Money Loop

This commit is contained in:
Ezequiel Holzweissig 2023-07-20 02:46:50 -03:00 committed by GitHub
parent 692b57b3ff
commit 981e913045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10071,8 +10071,8 @@ L7NEGML = L7NEG7:add_submenu("Nighclub Money Loop 250k/10s")
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local isRunning = false
local function safeLoop(state)
while state do
local function safeLoop()
while isRunning do
stats.set_int(MPX .. "CLUB_POPULARITY", 1000)
stats.set_int(MPX .. "CLUB_PAY_TIME_LEFT", -1)
sleep(1.5)
@ -10098,7 +10098,7 @@ L7NEGML:add_toggle(
end,
function()
isRunning = not isRunning
safeLoop(isRunning)
safeLoop()
end
)