Estevam2d Posted October 30, 2013 Share Posted October 30, 2013 Is there any script that I can use to update the other script on the server ? Link to comment
Spajk Posted October 30, 2013 Share Posted October 30, 2013 I believe that its possible to do it via fetchRemote, overwriting script files and then doing restartResource. Link to comment
Estevam2d Posted October 30, 2013 Author Share Posted October 30, 2013 I wanted to restart a script at time 15000 and do not know how to do this. Link to comment
Renkon Posted October 30, 2013 Share Posted October 30, 2013 I wanted to restart a script at time 15000 and do not know how to do this. You can use in order to restart every 15000ms (or any other time-difference) setTimer Link to comment
Markeloff Posted November 1, 2013 Share Posted November 1, 2013 Well, I feel so much sorry to the pc who will explode because of the RAM overuse caused by Timers. I do not advise you to restart a resource every short period, it can cause a huge lag and f... up a server. Link to comment
myonlake Posted November 1, 2013 Share Posted November 1, 2013 Well, I feel so much sorry to the pc who will explode because of the RAM overuse caused by Timers. I do not advise you to restart a resource every short period, it can cause a huge lag and f... up a server. I doubt that's a big problem unless there are client-side files in the resource - also, there is no major memory leakage in Multi Theft Auto (or any at all), which means it wouldn't blow up anybody's computer. Thing is, restarting a resource every now and then will lag the server regardless of its size. Link to comment
Dealman Posted November 2, 2013 Share Posted November 2, 2013 Why are people so against setTimer? It really isn't as bad as most people think, unless you create hundreds or thousands of them with onClientRender and it also depends on what you do with the timer. As for restarting the resource, you can use startResource and stopResource to restart it with a timer, or by other means if you so desire. Just keep in mind that they will require ACL Permission to do this. 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