Hey, I know this is supposed to be in script section, but I decided to post it here, since people might look here when they want to say "Me haf no server sejv!1!11!" xD
So, place this at bottom of global.lua:
And just change the delay of each save, and you're done
Move if you really feel it shouldn't be here.
So, place this at bottom of global.lua:
PHP:
saveDelay = 10 * 60 * 1000 -- 10 minutes for each save.
storageValue = 2342
if (getGlobalStorageValue(storageValue) == -1) then
function save(saveDelay)
saveData()
print(">>>>PLAYERS SAVED<<<<")
addEvent(save, saveDelay, saveDelay)
end
addEvent(save, saveDelay, saveDelay)
setGlobalStorageValue(storageValue, 1)
end
And just change the delay of each save, and you're done

Move if you really feel it shouldn't be here.
Last edited: