Search the Community
Showing results for tags 'reloot'.
-
function refre:~emLoots () for i, loots in ipairs(getElementsByType("colshape")) do local itemloot = getElementData(loots,"itemloot") if itemloot then local objects = getElementData(loots,"objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end destroyElement(loots) end end triggerEvent("onServerRespawnTrees",root) insertIntoTableResidential() createPickupsOnServerStart() setTimer(refre:~emLootPoints,gameplayVariables["itemrespawntimer"],1) local theTime = getRealTime() local hour = theTime.hour local minute = theTime.minute local seconds = theTime.second if hour < 10 then hour = "0"..hour else hour = theTime.hour end if minute < 10 then minute = "0"..minute else minute = theTime.minute end if seconds < 10 then minute = "0"..seconds else seconds = theTime.second end exports.DayZ:saveLog("[DayZ] ["..hour..":"..minute..":"..seconds.."] Items have been respawned.\r\n","game") outputDebugString("[DayZ] ["..hour..":"..minute..":"..seconds.."] Items have been respawned.",0,0,255,0) end function refre:~emLootPoints () local time = getRealTime() local hour = time.hour setTimer(refre:~emLoots,60000,1) end setTimer(refre:~emLootPoints,gameplayVariables["itemrespawntimer"],1) Help me create reloot time hud and chat