Thomas_Matthew Posted December 30, 2011 Share Posted December 30, 2011 Hello, I'm just wondering if this is possable? To restart the resource at a certain time. Or even better when theres no players in it, it restarts. Has this been done already? Link to comment
TAPL Posted December 30, 2011 Share Posted December 30, 2011 restartResource startResource stopResource [url=https://wiki.multitheftauto.com/wiki/OnResourceStart]https://wiki.multitheftauto.com/wiki/OnResourceStart[/url] [url=https://wiki.multitheftauto.com/wiki/OnResourceStop]https://wiki.multitheftauto.com/wiki/OnResourceStop[/url] Link to comment
BinSlayer1 Posted December 30, 2011 Share Posted December 30, 2011 use setTimer and leave the timer to run indefinitely every 5 seconds or so and check if #getElementsByType('player') returns 0 if it does return 0 then restartResource() and destroy the timer and no 'else' 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