#Humber* Posted July 10, 2016 Share Posted July 10, 2016 Hola, queria hacer que el resource 'Zombies' se iniciara por la noche, y se parara por el día, pero no funciona. setTimer( function() local hour, minutes = getTime() if hour >= 21 and hour < 4 then if getResourceState(getResourceFromName("Zombies")) == "loaded" then startResource(getResourceFromName("Zombies")) end else if getResourceState(getResourceFromName("Zombies")) == "running" then stopResource(getResourceFromName("Zombies")) end end end, 5000, 0 ) Funciona bien la parte de stop, pero el resource nunca se inicia. Link to comment
aka Blue Posted July 10, 2016 Share Posted July 10, 2016 El foro en español está en otra parte... 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