forked from Simnation/Main
Update main.lua
This commit is contained in:
parent
64b7dc22f9
commit
8caeaffe98
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue