e
This commit is contained in:
parent
ab710c86fd
commit
31cbcb2aca
3 changed files with 256 additions and 96 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue