Jump to content

[Help] Script Auto restart


Recommended Posts

2 minutes ago, Mkl said:

Weird idea, why do you want to do this ?

 

I want to publish the data of my members on my server to my site with .xml method. I want to do this because my data is constantly growing. But I'm stuck. xd

They said I could do this with SetTimer. But I don't know how to do it.

Link to comment

Guys Done!
> Create a script file. (server.lua and meta.xml)
> Type the name of the script file you want to reset where it says "scriptname". [filename in resources section]
> done ?

[server.lua]

setTimer(function()
  local res = getResourceFromName("scriptname")
  stopResource(res)
  startResource(res)
end, 300000, 0)

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...