This commit is contained in:
Nordi98 2025-07-20 03:42:24 +02:00
parent ab710c86fd
commit 31cbcb2aca
3 changed files with 256 additions and 96 deletions

View file

@ -170,14 +170,13 @@ RegisterNetEvent('container_heist:server:finishRobbery', function(containerId, c
rewardsGiven = rewardsGiven + 1
end
end -- <-- This end statement was missing
end
if rewardsGiven == 0 then
TriggerClientEvent('QBCore:Notify', src, "The container was empty!", "error")
end
end)


-- Clean up cooldowns periodically
CreateThread(function()
while true do
@ -206,3 +205,4 @@ CreateThread(function()
end
end
end)