No4NaMe Posted January 31, 2018 Share Posted January 31, 2018 (edited) 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 Edited January 31, 2018 by No4NaMe Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now