1
0
Fork 0
forked from Simnation/Main

Update main.lua

This commit is contained in:
Nordi98 2025-07-20 03:26:36 +02:00
parent 64b7dc22f9
commit 8caeaffe98

View file

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