Try this
addEventHandler("onClientMarkerHit", marker2, function() -- function() added
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 10)
end, 1000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 20)
end, 2000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 30)
end, 3000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 40)
end, 4000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 50)
end, 5000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 60)
end, 6000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 70)
end, 7000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 80)
end, 8000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 90)
end, 9000, 1)
setTimer(function()
guiProgressBarSetProgress(GUIEditor.progressbar[1], 100)
end, 10000, 1)
setTimer(function()
guiSetVisible (GUIEditor.progressbar[1], false)
triggerServerEvent("jutalmad", getLocalPlayer(), group)
end, 11000, 1)
end) -- end added