DRW Posted May 9, 2015 Share Posted May 9, 2015 So I want to execute a function when time is 21:00 (in-game). I've been looking at the wiki for getTime, but I don't understand what to do, it just gives an example of how to get the current time, not how to get a specific time and execute a function. Link to comment
WhoAmI Posted May 9, 2015 Share Posted May 9, 2015 setTimer(function() local h, m = getTime() if h == 21 and m == 0 then -- tod end end, 1000, 1 ) Link to comment
DRW Posted May 9, 2015 Author Share Posted May 9, 2015 setTimer(function() local h, m = getTime() if h == 21 and m == 0 then -- tod end end, 1000, 1 ) Thanks! 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