BurakAKSAKAL Posted May 20, 2022 Share Posted May 20, 2022 Hello there; I want to restart a certain script every 30 minutes. can you just help? Link to comment
Mkl Posted May 20, 2022 Share Posted May 20, 2022 Weird idea, why do you want to do this ? Link to comment
BurakAKSAKAL Posted May 20, 2022 Author Share Posted May 20, 2022 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
BurakAKSAKAL Posted May 20, 2022 Author Share Posted May 20, 2022 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
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